Qore PgsqlSqlUtil Module Reference  1.0
 All Classes Namespaces Functions Variables Groups Pages
PgsqlSqlUtil::PgsqlTable Class Reference

provides the PostgreSQL-specific implementation of the SqlUtil::AbstractTable interface More...

Inheritance diagram for PgsqlSqlUtil::PgsqlTable:

Public Member Functions

private clearImpl ()
 clears PostgreSQL-specific table information
 
private bool constraintsLinkedToIndexesImpl ()
 returns True if the database links constraints to indexes (ie dropping the constraint drops the index, etc)
 
private copyImpl (AbstractTable old)
 db-specific copy actions
 
private doSelectLimitOnlyUnlockedImpl (reference sql, reference args, *hash qh)
 processes a string for use in SQL select statements when there is a "limit" argument, but no "orderby" or "offset" arguments
 
private doSelectOrderByWithOffsetSqlUnlockedImpl (reference sql, reference args, *hash qh, *hash jch, *hash ch)
 processes a string for use in SQL select statements when there is an "order by" and "offset" argument
 
private hash getColumnOperatorMap ()
 returns the column operator map for this object
 
string getSchemaName ()
 returns the schema name
 
string getSqlName ()
 returns the name of the table to be used in SQL (with a possible qualifiers for schema, etc)
 
private *string getSqlValueImpl (any v)
 returns a string for use in SQL queries representing the DB-specific value of the argument; returns NOTHING if the type cannot be converted to an SQL string
 
*string getTablespaceName ()
 returns the data tablespace name for the table or NOTHING if none is known
 
private bool supportsTablespacesImpl ()
 returns True if the database support tablespaces
 
private any tryExecArgsImpl (string sql, *softlist args)
 tries to execute a command so that if an error occurs the current transaction status is not lost
 
private any tryExecRawImpl (string sql, *softlist args)
 tries to execute a command so that if an error occurs the current transaction status is not lost
 
private bool uniqueIndexCreatesConstraintImpl ()
 returns True if the database automatically creates a unique constraint when a unique index is created (ex: mysql)
 

Public Attributes

const PgsqlCopMap
 column operator specializations for PostgreSQL
 
const PgsqlNameMap
 maps from verbose type names to simple type names
 
const PgsqlTableDescriptionHashOptions
 extends SqlUtil::AbstractTable::TableDescriptionHashOptions with "functions" for table functions required by triggers on the table
 
const PgsqlTypeMap
 maps postgresql type names to type configurations
 
const QoreTypeMap
 maps qore type names to postgresql type names
 

Private Attributes

string schema
 schema name for the table
 
*string tablespace
 tablespace name for the table, if known
 
Functions triggerFunctions
 contains any trigger functions supporting triggers on the table
 

Detailed Description

provides the PostgreSQL-specific implementation of the SqlUtil::AbstractTable interface