Previous Page
_sqlColdef()

Solar_Sql_Adapter_Sqlite
_sqlCreateTable()

Next Page
_sqlSelect()

_sqlCreateTable()

protected string _sqlCreateTable ( string $table, string $cols )

Returns a CREATE TABLE command string for the adapter.

Inherited from Solar_Sql_Adapter.

Parameters

  • (string) $table: The table name to create.
  • (string) $cols: The column definitions.

Returns

  • (string) A CREATE TABLE command string.

Description

Returns a CREATE TABLE command string for the adapter.

We use this so that certain adapters can append table types to the creation statment (for example MySQL).