Skip to content

@sqlrooms/sql-editor / CreateTableModalProps

Type Alias: CreateTableModalProps

CreateTableModalProps: object

Type declaration

NameTypeDescription
querystring-
isOpenboolean-
onClose() => void-
editDataSource?SqlQueryDataSource-
allowMultipleStatements?booleanAllow multiple statements in the query. When true, preceding statements will be executed before the final SELECT is wrapped in CREATE TABLE/VIEW.
showSchemaSelection?booleanShow schema/database selection UI. Default false
onAddOrUpdateSqlQuery?(tableName, query, oldTableName?) => Promise<void>Deprecated Use createTableFromQuery directly instead. When not provided, the modal will call createTableFromQuery directly.
className?stringAdditional class name for the dialog content.
initialValues?CreateTableFormInitialValuesInitial values for the form fields.