Alter Query Builder
Query builder for the SQL ALTER 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
changeField()
Update a field in the table.
Usage
❐ Copy
Example
❐ Copy
query()
Convert the builder to a query object.
Usage
❐ Copy
Example
❐ Copy
removeField()
Remove a field from the table.
Usage
❐ Copy
Example
❐ Copy
removeForeignKey()
Remove key from the table.
Usage
❐ Copy
Example
❐ Copy
removeKey()
Remove a key index from the table.
Usage
❐ Copy
Example
❐ Copy
removePrimaryKey()
Add a primary key to the table.
Usage
❐ Copy
Example
❐ Copy
removeUniqueKey()
Remove a unique key from the table.
Usage
❐ Copy
Example
❐ Copy
then()
Makes class awaitable. Should get the query and values and call the action.
Usage
❐ Copy
Example
❐ Copy