|
Qore OracleSqlUtil Module Reference
1.2.5
|
represents an Oracle table More...

Public Member Functions | |
| bool | bindEmptyStringsAsNull () |
| returns True because Oracle treats empty strings like NULL on insert More... | |
| string | getBaseType () |
returns the base type of the underlying object (either "table" or "view") More... | |
| code | getBulkUpsertClosure (hash example_row, int upsert_strategy=AbstractTable::UpsertAuto, *hash opt) |
| Oracle always supports bulk merging. | |
| string | getColumnSqlName (string col) |
| returns the column name for use in SQL strings; subclasses can return a special string in case the column name is a reserved word | |
| list | getColumnSqlNames (softlist cols) |
| returns a list of column names for use in SQL strings; subclasses can process the argument list in case a column name is a reserved word | |
| *string | getComment () |
| returns any table comment or NOTHING if none is known | |
| string | getSchemaName () |
| returns the schema name | |
| string | getSqlName () |
| returns the schema and table name in dot notation | |
| *string | getTablespaceName () |
| returns the data tablespace name for the table if any or NOTHING if none is known | |
| code | getUpsertClosure (hash row, int upsert_strategy=UpsertAuto, *hash opt) |
| returns a closure for performing upserts; if the upsert_strategy argument is UpsertInsertFirst or UpsertUpdateFirst, then this argument is ignored and a closure using an Oracle merge statement is returned | |
| bool | hasArrayBind () |
| returns True because the oracle driver supports array binds / bulk DML operations | |
| bool | isView () |
| This method can change itself or disappear in the near future. Do not use it. | |
Public Attributes | |
| const | OracleConstraintOptions |
| Oracle-specific constraint options. More... | |
| const | OracleCopMap |
| column operator specializations for Oracle | |
| const | OracleIndexOptions |
| Oracle-specific index options. More... | |
| const | OracleIopMap |
| a hash of default value operator descriptions for Oracle | |
| const | OracleOpMap |
| where operator specializations for Oracle | |
| const | OraclePseudoColumnHash |
| a hash of valid pseudocolumns | |
| const | OracleSelectOptions |
| Oracle select options. More... | |
| const | OracleTableCreationOptions |
| Oracle table creation options. | |
| const | OracleTruncDate |
| Map SqlUtil::cop_trunc_date() constants to Oracle internal masks. | |
| const | OracleUopMap |
| a hash of default update operator definitions for Oracle | |
| const | OraColumnDescOptions = AbstractTable::ColumnDescOptions + OraColumnOpts |
| Oracle-specific column options. More... | |
| const | OraColumnOptions = AbstractTable::ColumnOptions + OraColumnOpts |
| Oracle-specific column options. More... | |
| const | OraTypeMap |
| maps oracle type names to type descriptions | |
| const | QoreTypeMap |
| maps qore type names to an oracle type | |
Private Member Functions | |
| bool | asteriskRequiresPrefix () |
returns True if the database requires a wildcard "*" to be prefixed with the table name when it appears with other column arguments in a select statement | |
| bool | constraintsLinkedToIndexesImpl () |
| returns True if the database links constraints to indexes (ie dropping the constraint drops the index, etc) | |
| copyImpl (AbstractTable old) | |
| db-specific copy actions | |
| doSelectLimitOnlyUnlockedImpl (reference< string > sql, reference< list > args, *hash qh) | |
| processes a string for use in SQL select statements when there is a "limit" argument, but no "orderby" or "offset" arguments | |
| hash | getColumnOperatorMapImpl () |
| returns the column operator map for this object | |
| hash | getInsertOperatorMap () |
| returns the insert operator map for this object | |
| *hash | getPseudoColumnHash () |
| returns a hash of valid pseudocolumns | |
| hash | getRawUpdateOperatorMap () |
| returns the raw (default) update operator map for this object | |
| hash | getSelectOptions () |
| override in subclasses to return driver-specific options | |
| *string | getSqlValueImpl (auto 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 | |
| code | getUpsertInsertOnly (Columns cols, hash row, *hash opt) |
| high-performance "insert only" upsert supporting bulk DML | |
| code | getUpsertUpdateOnly (Columns cols, hash row, *hash opt) |
| high-performance "update only" upsert supporting bulk DML | |
| hash | getWhereOperatorMap () |
| returns the "where" operator map for this object | |
| bool | supportsTablespacesImpl () |
| returns True if the database support tablespaces | |
| bool | uniqueIndexCreatesConstraintImpl () |
| returns True if the database automatically creates a unique constraint when a unique index is created (ex: mysql) | |
represents an Oracle table
this is the specialization of SqlUtil::AbstractTable
| bool OracleSqlUtil::OracleTable::bindEmptyStringsAsNull | ( | ) |
returns True because Oracle treats empty strings like NULL on insert
| string OracleSqlUtil::OracleTable::getBaseType | ( | ) |
returns the base type of the underlying object (either "table" or "view")
| const OracleSqlUtil::OracleTable::OracleConstraintOptions |
Oracle-specific constraint options.
this constant extends OracleIndexOptions as returned by OracleSqlUtil::OracleTable::getConstraintOptions() with the following keys:
index: adds "using index <indexname>" to the constraint creation string | const OracleSqlUtil::OracleTable::OracleIndexOptions |
Oracle-specific index options.
this constant extends SqlUtil::AbstractTable::IndexOptions as returned by OracleSqlUtil::OracleTable::getIndexOptions() with the following keys:
compute_statistics: adds "compute statistics" to index creation strings | const OracleSqlUtil::OracleTable::OracleSelectOptions |
Oracle select options.
This constant extends SqlUtil::AbstractTable::SelectOptions with the following options as returned by OracleSqlUtil::OracleTable::getSelectOptions():
partition: the partition name to use in a query (see Partition Support in Selects) | const OracleSqlUtil::OracleTable::OraColumnDescOptions = AbstractTable::ColumnDescOptions + OraColumnOpts |
Oracle-specific column options.
this constant extends SqlUtil::AbstractTable::ColumnDescOptions as returned by OracleSqlUtil::OracleTable::getColumnDescOptions() with the following keys:
character_semantics: to specify that applicable character columns use character semantics in the column definition | const OracleSqlUtil::OracleTable::OraColumnOptions = AbstractTable::ColumnOptions + OraColumnOpts |
Oracle-specific column options.
this constant extends SqlUtil::AbstractTable::ColumnOptions as returned by OracleSqlUtil::OracleTable::getColumnOptions() with the following keys:
character_semantics: adds "char" to the column type name for applicable character columns to use character semantics for the column