Qore Sqlite3SqlUtil Module Reference 1.1
|
represents a Sqlite3-specific column More...
#include <Sqlite3SqlUtil.qm.dox.h>
Public Member Methods | |
constructor (string name, string native_type, *string qore_type, bool nullable, *string default_value, bool auto_increment=False, bool primary_key=False) | |
Creates the column. | |
softlist< string > | getAddColumnSql (AbstractTable t) |
returns a list of sql strings that can be used to add the column to an existing table More... | |
string | getDdlName (string name) |
returns the column name with quoting in case the column name is a reserved word More... | |
softlist< string > | getModifySqlImpl (AbstractTable t, AbstractColumn col, *hash< auto > opt) |
returns a list of sql strings that can be used to modify the column to the new definition More... | |
string | getRenameSql (AbstractTable t, string new_name) |
returns a string that can be used to rename the column More... | |
Private Member Methods | |
constructor () | |
empty constructor for subclasses | |
bool | equalImpl (AbstractColumn c) |
returns True if the argument is equal to the current object, False if not | |
represents a Sqlite3-specific column
softlist< string > Sqlite3SqlUtil::Sqlite3Column::getAddColumnSql | ( | 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 |
|
virtual |
returns the column name with quoting in case the column name is a reserved word
the name returned here will be used when executing DDL
Implements SqlUtil::AbstractDdlObject.
softlist< string > Sqlite3SqlUtil::Sqlite3Column::getModifySqlImpl | ( | AbstractTable | t, |
AbstractColumn | col, | ||
*hash< auto > | 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 |
opt | column modification options (none are supported in this class) |
string Sqlite3SqlUtil::Sqlite3Column::getRenameSql | ( | AbstractTable | t, |
string | new_name | ||
) |
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 |