SingleStore Workspace
sql_editorOpen an interactive SQL workspace for SingleStore to write, edit, and run queries, explore schemas, and monitor pipelines or clusters.
Instructions
Open the SingleStore workspace: an interactive SQL editor plus views.
A slim rail on the left switches between the SQL Editor (schema tree,
editor with autocomplete for keywords, SingleStore functions, databases,
tables and columns, and a results pane), the Schema Explorer, the Pipeline
Monitor and the Cluster Monitor. Use this when the user wants to write,
edit or run SQL themselves, or wants the combined workspace. To run a
query for your own reasoning use run_sql; to show results use query_grid.
The editor has a chat panel: questions from it arrive in the conversation
tagged "[SQL Editor <id>]"; answer those with sql_editor_reply.
The result includes ``browser_url``, which opens this view full-window in
the user's browser: post it as a clickable link right under the app.
Args:
database: Database to start in (case-sensitive).
sql: SQL to put in the editor (not run automatically).
view: View to show first: "sql" (default), "notebook", "schema", "pipelines", "cluster", "history" (Query History), "alerts" or "connections".
table: For view="schema": table to pre-select in `database`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | ||
| view | No | sql | |
| table | No | ||
| database | No |