@sqlrooms/sql-editor / Props
Type Alias: Props
Props:
object
Type declaration
Name | Type | Description |
---|---|---|
schema ? | 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 | boolean | Whether the SQL editor is currently visible |
documentationPanel ? | React.ReactNode | Optional component to render SQL documentation in the side panel |
onClose | () => void | Callback fired when the SQL editor should be closed |