42 a.*, rownum rnum from (select * from schema.table where
type = %v order by
type) a where rownum <= %v) where rnum > %v
", ("user
", 300, 200));
71 note that the following simpler SQL is generated for Oracle 12c+ servers:
73 $ds.vselectRows("select * from schema.table where
type = %v order by
type offset %v rows fetch next %v rows only
", (200, 100));
76 @subsection ora_in_operator IN Operator on Oracle
78 In order to avoid dynamic SQL and better manage the server's shared pool (in particular, the number of parsed statements), the %OracleSqlUtil
79 module uses bind by value with the SQL \c IN operator.
81 For example, the following query:
83 my *hash $q = $table.select(("where
": ("col1
": op_in(1, 2, 3, 4))));
86 Results in the equivalent of the following SQL:
88 my *hash $q = $ds.select("select * from schema.table where col1 in (select regexp_substr(%v,
'[^,]+', 1, level) from dual connect by regexp_substr(%v,
'[^,]+', 1, level) is not null)
", "1,2,3,4
", "1,2,3,4
");
91 @subsection ora_partitioning_select Partition Support in Selects
93 It's possible to select from a particular partition of a table with %OracleSqlUtil;
94 @ref OracleSqlUtil::OracleTable::OracleSelectOptions "OracleSelectOptions
" defines the \c "partition
" key which can be added to a
95 @ref select_option_hash "select option
hash" to specify the partition to select from as in the following example:
97 my *list $rows = $table.selectRows(("created
": op_gt(2012-05-01), "partition
": "p1
"));
99 Which generates an SQL command like the following:
101 my *list $rows = $ds.vselectRows("select * from schema.table partition(p1) where created > %v", (2012-05-01));
104 @subsection ora_partitioning_join Partition Support in Joins
106 It's possible to perform a
join on a particular partition of a table with %OracleSqlUtil; the
join option \c "partition" is
107 supported to specify the partition to
join on as in the following example:
111 Which generates an SQL command like the following:
113 my *
list $rows = $ds.vselectRows("select * from schema.table inner
join schema.table2 partition(p2) t2 on (schema.table.
id = t2.altid)");
116 @section ora_schema_management Schema Management on Oracle
118 Note that when getting an
object description from an Oracle database, if the
object cannot be found in the connection schema, then
119 if a synonym of the same
type exists and the target
object is accessible, then the target
object is read automatically and the owning
120 schema name is also set to the actual owner of the
object.
122 @subsection ora_type_mapping Type Mapping
124 Column types are mapped from %Qore types as follows:
126 <b>Oracle Column Type Mappings</b>
127 @htmlonly <style><!-- td.qore { background-color: #5b9409; color: white; } --></style>
@endhtmlonly
130 <td
class=
"qore"><b>Generic Type Name</b></td>
131 <td
class=
"qore"><b>Oracle Type Used</b></td>
151 <td>\c timestamp(6)</td>
180 native Oracle
type name instead (under the \c
"driver" and \c
"oracle" keys
for schemas supporting multiple databases).
182 @subsection ora_other_objects Additional
Object Types Supported
184 The following additional schema objects can be managed with %OracleSqlUtil:
185 - @ref ora_materialized_views
"materialized views"
186 - @ref ora_packages
"packages"
187 - @ref ora_types
"types"
189 @subsection ora_materialized_views Materialized Views
191 The @ref schema_desc_hash takes an optional key, \c
"materialized_views" that allows materialized views in Oracle schemas to be managed along with other objects.
193 The \c
"materialized_views" should be assigned to a
hash, each key name is the name of the materialized view, and the values are hashes with the
195 - \c
"logging": (@ref bool_type
"bool")
if the materialized view should be logged
196 - \c
"use_index": (@ref bool_type
"bool")
if the materialized view should be indexed
197 - \c
"src": (@ref bool_type
"bool") the source of the materialized view
199 The \c
"materialized_views" key can go in the top level of the @ref schema_desc_hash
for Oracle-only schemas, or,
for schemas targeting multiple database types, under the \c
"driver" and \c
"oracle" keys as in the following example:
205 "materialized_views": (
209 "src":
"select type, count(1) total_count from table group by type",
217 @subsection ora_packages Packages
219 The @ref schema_desc_hash takes an optional key, \c
"packages" that allows packages in Oracle schemas to be managed along with other objects.
221 The \c
"packages" should be assigned to a
hash, each key name is the name of the package, and the values are hashes with the
223 - \c
"src": (@ref bool_type
"bool") the source of the package
225 The \c
"packages" key can go in the top level of the @ref schema_desc_hash
for Oracle-only schemas, or,
for schemas targeting multiple database types, under the \c
"driver" and \c
"oracle" keys as in the following example:
234 type cursorType is ref cursor;
235 MYSTATCOMPLETE constant order_status.orderstatus%type := 'C';
236 MYSTATERROR constant order_status.orderstatus%type := 'E';
245 @subsection ora_types Types
247 The @ref schema_desc_hash takes an optional key, \c
"types" that allows types in Oracle schemas to be managed along with other objects.
249 The \c
"types" should be assigned to a
hash, each key name is the name of the
type, and the values are strings giving the type definition.
251 The \c
"types" key can go in the top level of the @ref schema_desc_hash
for Oracle-only schemas, or,
for schemas targeting multiple database types, under the \c
"driver" and \c
"oracle" keys as in the following example:
258 "num_array":
"table of number",
259 "str_array":
"table of varchar2(240)",
268 @section ora_relnotes Release Notes
270 @subsection v10 OracleSqlUtil v1.0
275 namespace OracleSqlUtil {
296 constructor(
string n,
string nt, *
string qt,
int sz,
bool nul, *
string dv, *
string cm,
bool is_char =
False,
bool cu =
False,
int bs);
351 constructor(
string n,
string nt, *
string qt,
int sz,
bool nul, *
string dv, *
string cm,
int bs,
int n_scale = 0);
354 string getNativeTypeString();
372 constructor(
string n,
bool u, hash c,
string nt, *
string t);
384 string getRenameSql(
string table_name,
string new_name);
398 constructor(
string n, Columns c, ForeignConstraintTarget t,
bool e);
401 string getCreateSql(
string table_name, *hash opt);
404 softlist getRenameSql(
string table_name,
string new_name);
426 constructor(
string n,
string n_src,
bool e =
True);
429 string getCreateSql(
string table_name, *hash opt);
432 softlist getRenameSql(
string table_name,
string new_name);
457 constructor(
string n, hash n_cols,
bool e =
True, *
string ts);
479 bool setIndexBase(
string ix);
486 string getCreateSql(
string table_name, *hash opts);
489 softlist getRenameSql(
string table_name,
string new_name);
514 constructor(
string n, *hash c, *
string ts);
536 bool setIndexBase(
string ix);
543 string getCreateSql(
string table_name, *hash opts);
546 softlist getRenameSql(
string table_name,
string new_name);
591 constructor(
string n,
string n_src,
bool en =
True);
594 softlist getCreateSql(
string table_name, *hash opt);
602 softlist
getRenameSql(
string table_name,
string new_name);
619 constructor(
string n,
string n_type,
string n_src);
639 constructor(
string n_name,
string n_src);
682 constructor(
string n,
string n_src, *
string n_body_src);
715 constructor(
string n,
string n_src,
bool n_logging =
True,
bool n_use_index =
True, *
string n_tablespace);
722 bool equalImpl(AbstractFunctionBase t);
739 + OracleTable::OracleAlignTableOptions
781 constructor(AbstractDatasource nds, *hash opts);
798 getSchemaName(reference name, reference schema);
804 *AbstractSequence getSequenceImpl(
string name);
810 OracleFunction makeFunctionImpl(
string name,
string src, *hash opts);
816 OracleProcedure makeProcedureImpl(
string name,
string src, *hash opts);
820 OraclePackage makePackage(
string name,
string src,
string body, *hash opts);
823 OraclePackage makePackageFromDescription(
string name, hash ph, *hash opts);
826 OracleType makeType(
string name,
string src, *hash opts);
837 list getDropSchemaSqlImpl(hash schema_hash, *hash opt);
843 list getAlignSqlImpl(hash schema_hash, *hash opt);
870 *
string getSource(
string type,
string name);
876 checkSource(
string type,
string name, reference src);
914 list listTablesImpl();
920 list listFunctionsImpl();
926 list listProceduresImpl();
932 list listSequencesImpl();
938 list listViewsImpl();
944 list getListIntern(
string type);
956 string getCreateSqlImpl(
list l);
960 static string getCreateSql(
list l);
1021 "number": (
"qore":
Type::Number,
"size":
SZ_NUM,
"size_range": (1, 38),
"scale_range": (-84, 127)),
1026 "timestamp with time zone": (
"qore":
Type::Date,
"size":
SZ_OPT,
"size_range": (0, 9)),
1027 "timestamp with local time zone": (
"qore":
Type::Date,
"size":
SZ_OPT,
"size_range": (0, 9)),
1038 "timestamp(0) with time zone": (
"qore":
Type::Date,),
1039 "timestamp(1) with time zone": (
"qore":
Type::Date,),
1040 "timestamp(2) with time zone": (
"qore":
Type::Date,),
1041 "timestamp(3) with time zone": (
"qore":
Type::Date,),
1042 "timestamp(4) with time zone": (
"qore":
Type::Date,),
1043 "timestamp(5) with time zone": (
"qore":
Type::Date,),
1044 "timestamp(6) with time zone": (
"qore":
Type::Date,),
1045 "timestamp(7) with time zone": (
"qore":
Type::Date,),
1046 "timestamp(8) with time zone": (
"qore":
Type::Date,),
1047 "timestamp(9) with time zone": (
"qore":
Type::Date,),
1048 "timestamp(0) with local time zone": (
"qore":
Type::Date,),
1049 "timestamp(1) with local time zone": (
"qore":
Type::Date,),
1050 "timestamp(2) with local time zone": (
"qore":
Type::Date,),
1051 "timestamp(3) with local time zone": (
"qore":
Type::Date,),
1052 "timestamp(4) with local time zone": (
"qore":
Type::Date,),
1053 "timestamp(5) with local time zone": (
"qore":
Type::Date,),
1054 "timestamp(6) with local time zone": (
"qore":
Type::Date,),
1055 "timestamp(7) with local time zone": (
"qore":
Type::Date,),
1056 "timestamp(8) with local time zone": (
"qore":
Type::Date,),
1057 "timestamp(9) with local time zone": (
"qore":
Type::Date,),
1058 "interval year(0) to month": (
"qore":
Type::Date,),
1059 "interval year(1) to month": (
"qore":
Type::Date,),
1060 "interval year(2) to month": (
"qore":
Type::Date,),
1061 "interval year(3) to month": (
"qore":
Type::Date,),
1062 "interval year(4) to month": (
"qore":
Type::Date,),
1063 "interval year(5) to month": (
"qore":
Type::Date,),
1064 "interval year(6) to month": (
"qore":
Type::Date,),
1065 "interval year(7) to month": (
"qore":
Type::Date,),
1066 "interval year(8) to month": (
"qore":
Type::Date,),
1067 "interval year(9) to month": (
"qore":
Type::Date,),
1068 "interval day(0) to second(0)": (
"qore":
Type::Date,),
1069 "interval day(0) to second(1)": (
"qore":
Type::Date,),
1070 "interval day(0) to second(2)": (
"qore":
Type::Date,),
1071 "interval day(0) to second(3)": (
"qore":
Type::Date,),
1072 "interval day(0) to second(4)": (
"qore":
Type::Date,),
1073 "interval day(0) to second(5)": (
"qore":
Type::Date,),
1074 "interval day(0) to second(6)": (
"qore":
Type::Date,),
1075 "interval day(0) to second(7)": (
"qore":
Type::Date,),
1076 "interval day(0) to second(8)": (
"qore":
Type::Date,),
1077 "interval day(0) to second(9)": (
"qore":
Type::Date,),
1078 "interval day(1) to second(0)": (
"qore":
Type::Date,),
1079 "interval day(1) to second(1)": (
"qore":
Type::Date,),
1080 "interval day(1) to second(2)": (
"qore":
Type::Date,),
1081 "interval day(1) to second(3)": (
"qore":
Type::Date,),
1082 "interval day(1) to second(4)": (
"qore":
Type::Date,),
1083 "interval day(1) to second(5)": (
"qore":
Type::Date,),
1084 "interval day(1) to second(6)": (
"qore":
Type::Date,),
1085 "interval day(1) to second(7)": (
"qore":
Type::Date,),
1086 "interval day(1) to second(8)": (
"qore":
Type::Date,),
1087 "interval day(1) to second(9)": (
"qore":
Type::Date,),
1088 "interval day(2) to second(0)": (
"qore":
Type::Date,),
1089 "interval day(2) to second(1)": (
"qore":
Type::Date,),
1090 "interval day(2) to second(2)": (
"qore":
Type::Date,),
1091 "interval day(2) to second(3)": (
"qore":
Type::Date,),
1092 "interval day(2) to second(4)": (
"qore":
Type::Date,),
1093 "interval day(2) to second(5)": (
"qore":
Type::Date,),
1094 "interval day(2) to second(6)": (
"qore":
Type::Date,),
1095 "interval day(2) to second(7)": (
"qore":
Type::Date,),
1096 "interval day(2) to second(8)": (
"qore":
Type::Date,),
1097 "interval day(2) to second(9)": (
"qore":
Type::Date,),
1111 "integer":
"number",
1114 "string":
"varchar2",
1115 "date":
"timestamp(6)",
1122 const OraColumnOpts = (
1174 "code":
string (
object t,
string cn, any arg, reference args) {
1175 *
string argstr = (foldl $1 +
"," + $2, (map $1.toString(), arg));
1184 return cn +
" in (select regexp_substr(%v,'[^,]+', 1, level) from dual connect by regexp_substr(%v, '[^,]+', 1, level) is not null)";
1194 "argoptional":
True,
1195 "code":
string (*
string cve, *
string arg) {
1196 string sql = cve +
" over (";
1198 sql +=
sprintf(
"partition by %s", arg);
1204 "code":
string (
string arg1, any arg) {
1205 return sprintf(
"to_char(%s, 'YYYY')", arg1);
1209 "code":
string (
string arg1, any arg) {
1210 return sprintf(
"to_char(%s, 'YYYY-MM')", arg1);
1214 "code":
string (
string arg1, any arg) {
1215 return sprintf(
"to_char(%s, 'YYYY-MM-DD')", arg1);
1219 "code":
string (
string arg1, any arg) {
1220 return sprintf(
"to_char(%s, 'YYYY-MM-DD HH24')", arg1);
1247 constructor(AbstractDatasource nds,
string nname, *hash opts);
1252 bool checkExistenceImpl();
1258 setTableInfoIntern();
1268 hash setSchemaTable();
1286 string getUserSchema();
1292 string getDBString();
1313 hash getColumnOptions();
1319 hash getColumnDescOptions();
1332 getSelectWhereSqlUnlocked(reference sql, reference args, *hash qh, *hash jch,
bool join =
False, *hash ch);
1338 doSelectOrderByWithOffsetSqlUnlockedImpl(reference sql, reference args, *hash qh, *hash jch, *hash ch);
1351 Columns describeImpl();
1357 OraclePrimaryKey getPrimaryKeyImpl();
1363 Indexes getIndexesImpl();
1369 ForeignConstraints getForeignConstraintsImpl(*hash opts);
1375 Constraints getConstraintsImpl();
1381 string getSelectSqlName(*hash qh);
1387 Triggers getTriggersImpl();
1391 string getCreateTableSqlImpl(*hash opt);
1396 *
list getCreateMiscSqlImpl(*hash opt,
bool cache);
1402 string getCreateSqlImpl(
list l);
1408 string getRenameSqlImpl(
string new_name);
1414 AbstractColumn addColumnImpl(
string cname, hash opt,
bool nullable =
True);
1420 AbstractPrimaryKey addPrimaryKeyImpl(
string cname, hash ch, *hash opt);
1426 AbstractIndex addIndexImpl(
string iname,
bool enabled, hash ch, *hash opt);
1432 AbstractForeignConstraint addForeignConstraintImpl(
string cname, hash ch,
string table, hash tch, *hash opt);
1438 AbstractCheckConstraint addCheckConstraintImpl(
string cname,
string src, *hash opt);
1444 AbstractUniqueConstraint addUniqueConstraintImpl(
string cname, hash ch, *hash opt);
1450 AbstractTrigger addTriggerImpl(
string tname,
string src, *hash opt);
1456 bool tryInsertImpl(
string sql, hash row);
1462 *
list getAlignSqlImpl(AbstractTable t, *hash opt);
1468 hash getQoreTypeMapImpl();
1474 hash getTypeMapImpl();
1480 hash getIndexOptions();
1486 hash getConstraintOptions();
1492 hash getTableCreationOptions();
1498 hash getAlignTableOptions();
1531 setupTableImpl(hash desc, *hash opt);
represents an Oracle unique constraint
Definition: OracleSqlUtil.qm.dox.h:445
represents an Oracle materialized view
Definition: OracleSqlUtil.qm.dox.h:695
bool supportsPackagesImpl()
returns True if the database supports packages
const OracleCreationOptions
oracle-specific generic creation options
Definition: OracleSqlUtil.qm.dox.h:732
list listSynonyms()
returns a list of string synonym names in the database
string sprintf(string fmt,...)
bool supportsSequencesImpl()
returns True if the database supports sequences
bool equalImpl(AbstractFunctionBase t)
returns True if the argument is equal to the current object, False if not
hash getSchemaDescriptionOptions()
returns driver-specific options to the base abstract class
ListIterator packageIterator()
returns an iterator listing the string package names in the database
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
hash getCreationOptions()
returns driver-specific options to the base abstract class
*string tablespace
the tablespace name of the index (if supported)
Definition: OracleSqlUtil.qm.dox.h:367
string getDisableSql(string table_name)
returns a string that can be used to temporarily disable the constraint from the database ...
string getDropSql(string table_name)
returns a string that can be used to drop the constraint from the database
bool logging
Flag if is loggign mode used.
Definition: OracleSqlUtil.qm.dox.h:700
represents an Oracle table
Definition: OracleSqlUtil.qm.dox.h:1015
string getDisableSql(string table_name)
returns a string that can be used to temporarily disable the constraint from the database ...
ListIterator synonymIterator()
returns an iterator listing the string synonym names in the database
list getCreateSql(*hash opt)
returns a string that can be used to create the package in the database
*string tablespace
Name of the potential tablespace.
Definition: OracleSqlUtil.qm.dox.h:704
constructor(string n, string n_type, string n_src)
creates the object from the arguments passed
const OracleMaterializedViewDescriptionOptions
oracle-specific materialized view description options
Definition: OracleSqlUtil.qm.dox.h:772
ListIterator materializedViewIterator()
returns an iterator listing the string materialized view names in the database
string getDisableSql(string table_name)
returns a string that can be used to temporarily disable the constraint from the database ...
list getRenameSql(string new_name)
returns a string that can be used to rename the object in the database
string getCreateSql(*hash opt)
returns a string that can be used to create the sequence in the database
copyImpl(AbstractTable old)
db-specific copy actions
bool enabled
True if the trigger is enabled, False if not
Definition: OracleSqlUtil.qm.dox.h:587
const OracleIndexOptions
Oracle-specific index options.
Definition: OracleSqlUtil.qm.dox.h:1142
bool enabled
True if the constraint is enabled, False if not
Definition: OracleSqlUtil.qm.dox.h:394
bool enabled
True if the constraint is enabled, False if not
Definition: OracleSqlUtil.qm.dox.h:422
represents an Oracle procedure
Definition: OracleSqlUtil.qm.dox.h:656
number number(softnumber n)
OracleColumn memberGate(string k)
returns the OracleColumn value of the given key if it exists, otherwise throws a KEY-ERROR exception ...
const OracleOpMap
where operator specializations for Oracle
Definition: OracleSqlUtil.qm.dox.h:1172
constructor(string n, string n_src)
creates the object from the arguments passed
const OracleTableCreationOptions
Oracle table creation options.
Definition: OracleSqlUtil.qm.dox.h:1155
bool equalImpl(AbstractIndex ix)
returns True if the argument is equal to the current index, False if not
list listTypes()
returns a list of string type names in the database
*string tablespace
any tablespace for the unique key index
Definition: OracleSqlUtil.qm.dox.h:453
bool enabled
True if the constraint is enabled, False if not
Definition: OracleSqlUtil.qm.dox.h:450
constructor(string n, string n_src, *string n_body_src)
creates the object from the arguments passed
list listMaterializedViews()
returns a list of string materialized view names in the database
bool supportsTypesImpl()
returns True if the database supports named types
string getEnableSql(string table_name, *hash opt)
returns a string that can be used to enable the constraint in the database
constructor(string n_name, number n_start=1, number n_increment=1, *softnumber n_end)
creates the object from the arguments
softlist getRenameSql(string table_name, string new_name)
returns a string that can be used to rename the trigger in the database
ListIterator typeIterator()
returns an iterator listing the string type names in the database
string getRenameSql(string table_name, string new_name)
returns a string that can be used to rename the index in the database
bool constraintsLinkedToIndexesImpl()
returns True if the database links constraints to indexes (ie dropping the constraint drops the index...
bool uniqueIndexCreatesConstraintImpl()
returns True if the database automatically creates a unique constraint when a unique index is created...
hash getColumnOperatorMap()
returns the column operator map for this object
string getEnableSql(string table_name, *hash opt)
returns a string that can be used to enable the constraint in the database
const OraColumnDescOptions
Oracle-specific column options.
Definition: OracleSqlUtil.qm.dox.h:1136
bool use_index
Flag if is index used.
Definition: OracleSqlUtil.qm.dox.h:702
hash getSelectOptions()
override in subclasses to return driver-specific options
bool equalImpl(AbstractFunctionBase t)
returns True if the argument is equal to the current object, False if not
constructor(string n, bool u, hash c, string nt, *string t)
creates the object from the arguments
the Oracle specialization for SqlUtil::AbstractDatabase
Definition: OracleSqlUtil.qm.dox.h:727
int byte_size
byte size of the column
Definition: OracleSqlUtil.qm.dox.h:292
hash getWhereOperatorMap()
returns the "where" operator map for this object
bool supportsTablespacesImpl()
returns True if the database support tablespaces
string getNativeTypeString()
returns the string describing the native type that can be used in SQL (for example to add the colunn ...
bool equalImpl(AbstractColumn c)
returns True if the argument is equal to the current object, False if not
const OraclePackageDescriptionOptions
oracle-specific package description options
Definition: OracleSqlUtil.qm.dox.h:766
string getRenameSql(string new_name)
returns a string that can be used to rename the sequence in the database
const OraTypeMap
maps oracle type names to type descriptions
Definition: OracleSqlUtil.qm.dox.h:1020
string string(softstring str)
const OracleAlignSchemaOptions
oracle-specific schema description / alignment options
Definition: OracleSqlUtil.qm.dox.h:737
string getRenameSql(AbstractTable t, string new_name)
returns a string that can be used to rename the column
bool equalImpl(AbstractFunctionBase t)
returns True if the argument is equal to the current object, False if not
const OracleConstraintOptions
Oracle-specific constraint options.
Definition: OracleSqlUtil.qm.dox.h:1150
OracleColumn memberGate(string k)
returns the OracleColumn value of the given key if it exists, otherwise throws a KEY-ERROR exception ...
softlist getCreateSql(*hash opt)
returns a string that can be used to create the object in the database
*string getComment()
returns any table comment or NOTHING if none is known
string getSchemaName()
returns the schema name
represents an Oracle check constraint
Definition: OracleSqlUtil.qm.dox.h:417
string getSqlName()
returns the schema and table naem in dot notation
string getEnableSql(string table_name, *hash opt)
returns a string that can be used to enable the constraint in the database
constructor(string n, string n_src, bool n_logging=True, bool n_use_index=True, *string n_tablespace)
creates the object from the arguments passed
represents an Oracle number column
Definition: OracleSqlUtil.qm.dox.h:348
clearIndex()
clears any index base for the constraint
represents an Oracle package
Definition: OracleSqlUtil.qm.dox.h:668
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; if the col...
represents an Oracle column
Definition: OracleSqlUtil.qm.dox.h:285
OracleDatabase get_database(AbstractDatasource nds, *hash opts)
returns an OracleDatabase object corresponding to the arguments
softlist getCreateSql(*hash opt)
returns a string that can be used to create the object in the database
const OracleCopMap
column operator specializations for Oracle
Definition: OracleSqlUtil.qm.dox.h:1191
softint getNextSequenceValueImpl(string name)
returns the next value in the given sequence
const OracleSelectOptions
Oracle select options.
Definition: OracleSqlUtil.qm.dox.h:1167
const QoreTypeMap
maps qore type names to an oracle type
Definition: OracleSqlUtil.qm.dox.h:1110
hash join_inner(AbstractTable table, *string alias, *hash jcols, *hash cond, *hash opt)
*string body_src
package body source
Definition: OracleSqlUtil.qm.dox.h:673
constructor(string n, string n_src)
creates the object from the arguments passed
*string tablespace
any tablespace for the primary key index
Definition: OracleSqlUtil.qm.dox.h:507
string getEnableSql(string table_name, *hash opt)
returns a string that can be used to enable the constraint in the database
list listPackages()
returns a list of string package names in the database
represents an Oracle sequence
Definition: OracleSqlUtil.qm.dox.h:565
represents an Oracle trigger
Definition: OracleSqlUtil.qm.dox.h:582
softlist getDropSql(string table_name)
returns a string that can be used to drop the trigger from the database
OracleTable get_table(AbstractDatasource nds, string nname, *hash opts)
returns an OracleTable object corresponding to the arguments
const OracleSchemaDescriptionOptions
oracle-specific schema description keys
Definition: OracleSqlUtil.qm.dox.h:751
*string getSqlValueImpl(any v)
returns a string for use in SQL queries representing the DB-specific value of the argument; returns N...
string getCreateSql(string table_name, *hash opt)
returns a string that can be used to create the index in the database
const OraColumnOptions
Oracle-specific column options.
Definition: OracleSqlUtil.qm.dox.h:1130
represents an Oracle foreign constraint
Definition: OracleSqlUtil.qm.dox.h:389
represents an Oracle type
Definition: OracleSqlUtil.qm.dox.h:636
represents an Oracle primary key
Definition: OracleSqlUtil.qm.dox.h:502
clearIndex()
clears any index base for the constraint
*string getTablespaceName()
returns the data tablespace name for the table if any or NOTHING if none is known ...
string native_type
the native type of the index (if supported)
Definition: OracleSqlUtil.qm.dox.h:364
string join(string str,...)
represents an Oracle index
Definition: OracleSqlUtil.qm.dox.h:359
hash getAlignSchemaOptions()
returns driver-specific options to the base abstract class
bool char_used
the column uses character semantics
Definition: OracleSqlUtil.qm.dox.h:290
represents an Oracle function
Definition: OracleSqlUtil.qm.dox.h:644
the base class for Oracle code objects
Definition: OracleSqlUtil.qm.dox.h:611
string getDisableSql(string table_name)
returns a string that can be used to temporarily disable the constraint from the database ...