Qore MysqlSqlUtil Module Reference
1.0
|
represents a MySQL-specific column More...
Public Member Functions | |
private bool | equalImpl (AbstractColumn c) |
returns True if the argument is equal to the current object, False if not | |
softlist | getCreateSql (AbstractTable t) |
returns a list of sql strings that can be used to add the column to an existing table More... | |
softlist | getModifySqlImpl (AbstractTable t, AbstractColumn col, *hash opt) |
returns a list of sql strings that can be used to modify the column to the new definition; if the column definitions are identical then an empty list is returned More... | |
string | getRenameSql (AbstractTable t, string new_name) |
returns a string that can be used to rename the column More... | |
Public Attributes | |
int | byte_size |
byte size of the column | |
represents a MySQL-specific column
softlist MysqlSqlUtil::MysqlColumn::getCreateSql | ( | AbstractTable | t | ) |
returns a list of sql strings that can be used to add the column to an existing table
t | the AbstractTable object to modify |
softlist MysqlSqlUtil::MysqlColumn::getModifySqlImpl | ( | AbstractTable | t, |
AbstractColumn | col, | ||
*hash | opt | ||
) |
returns a list of sql strings that can be used to modify the column to the new definition; if the column definitions are identical then an empty list is returned
The column names are assumed to be equal.
t | the AbstractTable object to modify |
col | the new column definition |
returns a string that can be used to rename the column
t | the AbstractTable object to modify |
new_name | the new name for the column |