$sqlite->createTable()
Creates a CREATE TABLE query
$sqlite->createTable(string $table, array $columns = [ ]): array
Parameters
Name | Type | Default | Description |
---|---|---|---|
$tablerequired | string |
no default value | Table name |
$columns | array |
[ ]
|
Array of column definition arrays, see Kirby\Database\Sql::createColumn() |
Return type
array
Array with a `query` string and a `bindings` array
This method modifies the existing $sqlite
object it is applied to and returns it again.