Skip to content

@sqlrooms/sql-editor / Props

Type Alias: Props

Props: object

Type declaration

NameTypeDescription
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.
isOpenbooleanWhether the SQL editor is currently visible
documentationPanel?React.ReactNodeOptional component to render SQL documentation in the side panel
onClose() => voidCallback fired when the SQL editor should be closed