class CreateAddField

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

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 32
__construct(DatabaseInterface $dbi)

Parameters

DatabaseInterface $dbi DatabaseInterface interface

at line 344
string getPartitionsDefinition()

Returns the partitioning clause

Return Value

string partitioning clause

at line 446
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 484
int getNumberOfFieldsFromRequest()

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

Return Value

int

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