class CreateAddField (View source)

Set of functions for /table/create and /table/add-field

Methods

__construct(DatabaseInterface $dbi)

No description

string
getPartitionsDefinition()

Returns the partitioning clause

string
getTableCreationQuery(string $db, string $table)

Function to get table creation sql query

string
getColumnCreationQuery(string $table)

Function to get the column creation statement

bool
tryColumnCreationQuery(DatabaseName $db, string $sqlQuery, string $errorUrl)

Function to execute the column creation statement

Details

__construct(DatabaseInterface $dbi)

No description

Parameters

DatabaseInterface $dbi

string getPartitionsDefinition()

Returns the partitioning clause

Return Value

string

partitioning clause

string getTableCreationQuery(string $db, string $table)

Function to get table creation sql query

Parameters

string $db

database name

string $table

table name

Return Value

string

string getColumnCreationQuery(string $table)

Function to get the column creation statement

Parameters

string $table

current table

Return Value

string

bool tryColumnCreationQuery(DatabaseName $db, string $sqlQuery, string $errorUrl)

Function to execute the column creation statement

Parameters

DatabaseName $db

current database

string $sqlQuery

the query to run

string $errorUrl

error page url

Return Value

bool