57 constructor(AbstractDatasource ds, *hash<auto> opts, *LoggerInterface logger) ;
115 int doSequenceKey(
string sequence_name, hash<auto> ctx, *reference<bool> missing_input);
125 hash<auto>
makeTableDesc(
string name, hash<string, AbstractDataField> fields, *hash<auto> opts);
129 static hash<GenericColumnInfo>
getColumnDesc(AbstractDatabase
db, AbstractDataField field, *hash<auto> opts);
144 static AbstractTable
getTable(
string ds_string,
string table_string);
147 static AbstractTable
getTable(AbstractDatasource ds,
string table_string);
The database data provider base class.
Definition DbDataProviderBase.qc.dox.h:28
beginTransaction()
Begins a transaction in the datasource.
constructor(AbstractDatasource ds, *hash< auto > opts, *LoggerInterface logger)
creates the object
const MapperKeyInfo
Mapper runtime key info; see details below.
Definition DbDataProviderBase.qc.dox.h:45
*hash< string, hash< MapperRuntimeKeyInfo > > getMapperRuntimeKeys()
Returns custom data mapper runtime keys.
constructor(hash< auto > options, *LoggerInterface logger)
Creates the object from constructor options.
AbstractDatabase db
the database object, if required
Definition DbDataProviderBase.qc.dox.h:33
hash< auto > makeTableDesc(string name, hash< string, AbstractDataField > fields, *hash< auto > opts)
Returns a table description hash from a field description.
static setDatasourceLookup(code datasource_lookup)
Sets the datasource lookup.
static *code table_lookup
Lookup to get an abstract table from a datasource and a name.
Definition DbDataProviderBase.qc.dox.h:52
static *code datasource_lookup
Lookup to get an abstract datasource from a name.
Definition DbDataProviderBase.qc.dox.h:49
static AbstractDatasource getDatasource(AbstractDatasource ds)
Returns the given AbstractDatasource object.
constructor(*LoggerInterface logger)
Creates the object with the given logger.
static AbstractTable getTable(string ds_string, string table_string)
Returns an AbstractTable object from the given datasource and table strings.
int doSequenceKey(string sequence_name, hash< auto > ctx, *reference< bool > missing_input)
Processes the sequence runtime key in mappers as a mapper key handler.
static AbstractDatasource getDatasource(string ds_string)
Returns an AbstractDatasource object from the given string.
static setTableLookup(code table_lookup)
Sets the table lookup.
int doSequenceCurrvalKey(string sequence_name, hash< auto > ctx, *reference< bool > missing_input)
Processes the sequence_currval runtime key in mappers as a mapper key handler.
static hash< GenericColumnInfo > getColumnDesc(AbstractDatabase db, AbstractDataField field, *hash< auto > opts)
Returns a column description hash for a field.
rollback()
Rolls back any transaction in progress in the datasource.
static AbstractTable getTable(AbstractDatasource ds, string table_string)
Returns an AbstractTable object from the given datasource and table arguments.
commit()
Commits any transaction in progress in the datasource.
const ConstructorOptions
Constructor options.
Definition DbDataProviderBase.qc.dox.h:36
constructor(AbstractDatabase db, *LoggerInterface logger)
creates the object
bool requiresTransactionManagement()
Returns True if the data provider supports transaction management.
Qore AbstractDbRecordIterator class definition.
Definition AbstractDbRecordIterator.qc.dox.h:26