@sqlrooms/sql-editor / CreateTableModalProps
Type Alias: CreateTableModalProps
CreateTableModalProps =
object
Properties
query
query:
string
isOpen
isOpen:
boolean
onClose
onClose: () =>
void
Returns
void
editDataSource?
optionaleditDataSource?:SqlQueryDataSource
allowMultipleStatements?
optionalallowMultipleStatements?:boolean
Allow multiple statements in the query. When true, preceding statements will be executed before the final SELECT is wrapped in CREATE TABLE/VIEW.
showSchemaSelection?
optionalshowSchemaSelection?:boolean
Show schema/database selection UI.
Default
falseonAddOrUpdateSqlQuery?
optionalonAddOrUpdateSqlQuery?: (tableName,query,oldTableName?,abortSignal?) =>Promise<void>
Parameters
| Parameter | Type |
|---|---|
tableName | string |
query | string |
oldTableName? | string |
abortSignal? | AbortSignal |
Returns
Promise<void>
Deprecated
Use createTableFromQuery directly instead. When not provided, the modal will call createTableFromQuery directly.
className?
optionalclassName?:string
Additional class name for the dialog content.
initialValues?
optionalinitialValues?:CreateTableFormInitialValues
Initial values for the form fields.
