@sqlrooms/sql-editor / SqlEditorProps
Type Alias: SqlEditorProps
SqlEditorProps =
object
Properties
schema?
optionalschema:TableStructurePanelProps["schema"]
The database schema to use. Defaults to ''. If '' is provided, all tables will be shown. If a function is provided, it will be used to filter the tables.
isOpen
isOpen:
boolean
Whether the SQL editor is currently visible
documentationPanel?
optionaldocumentationPanel:React.ReactNode
Optional component to render SQL documentation in the side panel
queryResultProps?
optionalqueryResultProps:Pick<React.ComponentProps<typeofQueryResultPanel>,"onRowClick"|"onRowDoubleClick">
Props forwarded to QueryResultPanel to configure result behavior. This provides a single entry point for table interactions.
onClose()
onClose: () =>
void
Callback fired when the SQL editor should be closed
Returns
void
