class CreateAddField

Set of functions for /table/create and /table/addfield

Methods

__construct(DatabaseInterface $dbi)

Constructor

string
getPartitionsDefinition()

Returns the partitioning clause

string
getTableCreationQuery(string $db, string $table)

Function to get table creation sql query

int
getNumberOfFieldsFromRequest()

Function to get the number of fields for the table creation form

array
tryColumnCreationQuery(string $db, string $table, string $errorUrl)

Function to execute the column creation statement

Details

at line 28
__construct(DatabaseInterface $dbi)

Constructor

Parameters

DatabaseInterface $dbi DatabaseInterface interface

at line 352
string getPartitionsDefinition()

Returns the partitioning clause

Return Value

string partitioning clause

at line 456
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

at line 496
int getNumberOfFieldsFromRequest()

Function to get the number of fields for the table creation form

Return Value

int

at line 525
array tryColumnCreationQuery(string $db, string $table, string $errorUrl)

Function to execute the column creation statement

Parameters

string $db current database
string $table current table
string $errorUrl error page url

Return Value

array