Aplus Framework Docs

CreateTable extends TableStatement
in package

Class CreateTable.

Tags
see
https://mariadb.com/kb/en/create-table/

Table of Contents

definition()  : static
ifNotExists()  : static
orReplace()  : static
Adds a OR REPLACE part.
run()  : int|string
Runs the CREATE TABLE statement.
sql()  : string
table()  : static
temporary()  : static
renderDefinition()  : string
renderIfNotExists()  : string|null
renderOrReplace()  : string|null
renderTable()  : string
renderTemporary()  : string|null

Methods

definition()

public definition(callable $definition) : static
Parameters
$definition : callable
Return values
static

ifNotExists()

public ifNotExists() : static
Return values
static

orReplace()

Adds a OR REPLACE part.

public orReplace() : static

WARNING: This feature is MariaDB only. It is not compatible with MySQL.

Return values
static

run()

Runs the CREATE TABLE statement.

public run() : int|string
Return values
int|string

The number of affected rows

sql()

public sql() : string
Return values
string

table()

public table(string $tableName) : static
Parameters
$tableName : string
Return values
static

temporary()

public temporary() : static
Return values
static

renderDefinition()

protected renderDefinition() : string
Return values
string

renderIfNotExists()

protected renderIfNotExists() : string|null
Return values
string|null

renderOrReplace()

protected renderOrReplace() : string|null
Return values
string|null

renderTable()

protected renderTable() : string
Return values
string

renderTemporary()

protected renderTemporary() : string|null
Return values
string|null

Search results