Create Query Builder
Query builder for the SQL CREATE TABLE statement.
engine
Returns the database engine used by this query builder. This is used to execute the query directly from this builder. You can also set this property manually.
❐ Copy
❐ Copy
addField()
Add a field to the table.
Usage
❐ Copy
Example
❐ Copy
addForeignKey()
Add a foreign key to the table.
Usage
❐ Copy
Example
❐ Copy
addKey()
Add a key index to the table.
Usage
❐ Copy
Example
❐ Copy
❐ Copy
addPrimaryKey()
Add a primary key to the table.
Usage
❐ Copy
Example
❐ Copy
addUniqueKey()
Add a unique key to the table.
Usage
❐ Copy
Example
❐ Copy
❐ Copy
build()
Converts the class data to object.
❐ Copy
query()
Convert the builder to a query object.
Usage
❐ Copy
Example
❐ Copy
then()
Makes class awaitable. Should get the query and values and call the action.
Usage
❐ Copy
Example
❐ Copy