Qore PgsqlSqlUtilBase Module Reference 1.8
|
represents a PostgreSQL-specific column More...
#include <PgsqlSqlUtilBase.qm.dox.h>
Public Member Methods | |
constructor (string n, string nt, *string qt, int sz, bool nul, *string dv, *string cm, softint bs, *int scale) | |
creates the column from the supplied arguments | |
list | 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... | |
list | 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 More... | |
string | getNativeTypeString () |
returns a string giving the native type of the column | |
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 | |
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 PostgreSQL-specific column
list PgsqlSqlUtilBase::PgsqlColumn::getAddColumnSql | ( | AbstractTable | t | ) |
returns a list of sql strings that can be used to add the column to an existing table
t | the SqlUtil::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.
list PgsqlSqlUtilBase::PgsqlColumn::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 SqlUtil::AbstractTable object to modify |
col | the new column definition |
opt | column modification options (none are supported by this class) |
string PgsqlSqlUtilBase::PgsqlColumn::getRenameSql | ( | AbstractTable | t, |
string | new_name | ||
) |
returns a string that can be used to rename the column
t | the SqlUtil::AbstractTable object to modify |
new_name | the new name for the column |