Defined in: packages/core/src/models/CreateTableQuery.ts:156
Extends ​
Constructors ​
Constructor ​
new CreateTableQuery(
params):CreateTableQuery
Defined in: packages/core/src/models/CreateTableQuery.ts:170
Parameters ​
params ​
tableName ​
string
namespaces? ​
string[] | null
isTemporary? ​
boolean
isUnlogged? ​
boolean
ifNotExists? ​
boolean
columns? ​
tableConstraints? ​
tableOptions? ​
RawString | null
asSelectQuery? ​
withDataOption? ​
"with-data" | "with-no-data" | null
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:
string[] |null
Defined in: packages/core/src/models/CreateTableQuery.ts:159
isTemporary ​
isTemporary:
boolean
Defined in: packages/core/src/models/CreateTableQuery.ts:160
isUnlogged ​
isUnlogged:
boolean
Defined in: packages/core/src/models/CreateTableQuery.ts:162
True when the table was declared with CREATE UNLOGGED TABLE (PostgreSQL).
ifNotExists ​
ifNotExists:
boolean
Defined in: packages/core/src/models/CreateTableQuery.ts:163
columns ​
columns:
TableColumnDefinition[]
Defined in: packages/core/src/models/CreateTableQuery.ts:164
tableConstraints ​
tableConstraints:
TableConstraintDefinition[]
Defined in: packages/core/src/models/CreateTableQuery.ts:165
tableOptions? ​
optionaltableOptions:RawString|null
Defined in: packages/core/src/models/CreateTableQuery.ts:166
asSelectQuery? ​
optionalasSelectQuery:SelectQuery
Defined in: packages/core/src/models/CreateTableQuery.ts:167
withDataOption ​
withDataOption:
"with-data"|"with-no-data"|null
Defined in: packages/core/src/models/CreateTableQuery.ts:168
comments ​
comments:
string[] |null=null
Defined in: packages/core/src/models/SqlComponent.ts:29
Inherited from ​
positionedComments ​
positionedComments:
PositionedComment[] |null=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:198
Returns a SelectQuery that selects all columns from this table.
Returns ​
getCountQuery() ​
getCountQuery():
SimpleSelectQuery
Defined in: packages/core/src/models/CreateTableQuery.ts:237
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[]