CreateAddField
class CreateAddField (View source)
Set of functions for /table/create and /table/add-field
Methods
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
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