Defined in: packages/core/src/models/CreateTableQuery.ts:156
Extends
Constructors
Constructor
new CreateTableQuery(
params):CreateTableQuery
Defined in: packages/core/src/models/CreateTableQuery.ts:168
Parameters
params
tableName
string
namespaces?
null | string[]
isTemporary?
boolean
ifNotExists?
boolean
columns?
tableConstraints?
tableOptions?
null | RawString
asSelectQuery?
withDataOption?
null | "with-data" | "with-no-data"
Returns
CreateTableQuery
Overrides
Properties
kind
statickind:symbol
Defined in: packages/core/src/models/CreateTableQuery.ts:157
Overrides
tableName
tableName:
IdentifierString
Defined in: packages/core/src/models/CreateTableQuery.ts:158
namespaces
namespaces:
null|string[]
Defined in: packages/core/src/models/CreateTableQuery.ts:159
isTemporary
isTemporary:
boolean
Defined in: packages/core/src/models/CreateTableQuery.ts:160
ifNotExists
ifNotExists:
boolean
Defined in: packages/core/src/models/CreateTableQuery.ts:161
columns
columns:
TableColumnDefinition[]
Defined in: packages/core/src/models/CreateTableQuery.ts:162
tableConstraints
tableConstraints:
TableConstraintDefinition[]
Defined in: packages/core/src/models/CreateTableQuery.ts:163
tableOptions?
optionaltableOptions:null|RawString
Defined in: packages/core/src/models/CreateTableQuery.ts:164
asSelectQuery?
optionalasSelectQuery:SelectQuery
Defined in: packages/core/src/models/CreateTableQuery.ts:165
withDataOption
withDataOption:
null|"with-data"|"with-no-data"
Defined in: packages/core/src/models/CreateTableQuery.ts:166
comments
comments:
null|string[] =null
Defined in: packages/core/src/models/SqlComponent.ts:29
Inherited from
positionedComments
positionedComments:
null|PositionedComment[] =null
Defined in: packages/core/src/models/SqlComponent.ts:32
Inherited from
SqlComponent.positionedComments
Methods
getSelectQuery()
getSelectQuery():
SimpleSelectQuery
Defined in: packages/core/src/models/CreateTableQuery.ts:194
Returns a SelectQuery that selects all columns from this table.
Returns
getCountQuery()
getCountQuery():
SimpleSelectQuery
Defined in: packages/core/src/models/CreateTableQuery.ts:233
Returns a SelectQuery that counts all rows in this table.
Returns
getKind()
getKind():
symbol
Defined in: packages/core/src/models/SqlComponent.ts:15
Returns
symbol
Inherited from
accept()
accept<
T>(visitor):T
Defined in: packages/core/src/models/SqlComponent.ts:19
Type Parameters
T
T
Parameters
visitor
SqlComponentVisitor<T>
Returns
T
Inherited from
toSqlString()
toSqlString(
formatter):string
Defined in: packages/core/src/models/SqlComponent.ts:23
Parameters
formatter
SqlComponentVisitor<string>
Returns
string
Inherited from
addPositionedComments()
addPositionedComments(
position,comments):void
Defined in: packages/core/src/models/SqlComponent.ts:37
Add comments at a specific position
Parameters
position
"before" | "after"
comments
string[]
Returns
void
Inherited from
SqlComponent.addPositionedComments
getPositionedComments()
getPositionedComments(
position):string[]
Defined in: packages/core/src/models/SqlComponent.ts:56
Get comments for a specific position
Parameters
position
"before" | "after"
Returns
string[]
Inherited from
SqlComponent.getPositionedComments
getAllPositionedComments()
getAllPositionedComments():
string[]
Defined in: packages/core/src/models/SqlComponent.ts:66
Get all positioned comments as a flat array in order (before, after)
Returns
string[]