| sql_editor | R Documentation |
A thin text_area() subclass with SQL highlighting. When connection is
supplied, execute_key runs the selected SQL, or the full buffer if nothing
is selected. Queries run synchronously in the current R process.
sql_editor(
value = "",
id = NULL,
connection = NULL,
execute_key = "ctrl+enter",
execution = c("query", "execute"),
line_numbers = TRUE,
tab_size = 2L,
...,
result_mode = c("data", "lazy"),
query_adapter = NULL
)
value |
Initial SQL text. |
id |
Optional widget id. |
connection |
A |
execute_key |
Key binding used to execute SQL. |
execution |
Either |
line_numbers |
Show line numbers? Defaults to |
tab_size |
Spaces inserted by Tab. |
... |
Additional arguments passed to TextArea. |
result_mode |
Query result mode: "data" materializes the result
(the default); "lazy" returns a |
query_adapter |
Optional backend pager callbacks passed to
|
A TextArea subclass with an execute() method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.