219 AbstractDataProviderBulkRecordInterface
searchRecordsBulkImpl(
int block_size = 1000, *hash<auto> where_cond, *hash<auto> search_options);
262 int updateRecordsImpl(hash<auto>
set, *hash<auto> where_cond, *hash<auto> search_options);
AbstractDataProviderBulkOperation getBulkInserter()
Returns a bulk insert operation object for the data provider.
Defines the record iterator class for Table-based iterators.
Definition: DbTableRecordIterator.qc.dox.h:34
int doSequenceKey(string sequence_name)
Processes the sequence runtime key in mappers.
int doSequenceCurrvalKey(string sequence_name)
Processes the sequence_currval runtime key in mappers.
Mutex db_lock()
lock for "db"
const ProviderInfo
Provider info.
Definition: DbTableDataProvider.qc.dox.h:32
int updateRecordsImpl(hash< auto > set, *hash< auto > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
*hash< string, hash< MapperRuntimeKeyInfo > > getMapperRuntimeKeys()
Returns custom data mapper runtime keys.
Defines a data provider based on a single SQL table.
Definition: DbTableDataProvider.qc.dox.h:28
commit()
Commits data written to the data provider.
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
const MapperKeyInfo
Mapper runtime key info; see details below.
Definition: DbTableDataProvider.qc.dox.h:41
const SearchOptions
Search options; see details below.
Definition: DbTableDataProvider.qc.dox.h:96
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
bool requiresTransactionManagement()
Returns True if the data provider supports transaction management.
string upsertRecordImpl(hash< auto > rec, *hash< auto > upsert_options)
Upserts the given record to the data provider.
*AbstractDataProvider getChildProviders()
Returns child providers; return NOTHING if there are no child providers.
const UpsertOptions
Upsert options; see details below.
Definition: DbTableDataProvider.qc.dox.h:69
AbstractDatabase db
the database object, if required
Definition: DbTableDataProvider.qc.dox.h:108
AbstractTable table
the table
Definition: DbTableDataProvider.qc.dox.h:105
*hash< string, AbstractDataField > getRecordTypeImpl(*hash< auto > search_options)
Returns the description of the record type, if any.
const DbUpsertMap
Maps SqlUtil Upsert Result Codes to DB Provider Upsert Result Codes.
Definition: DbTableDataProvider.qc.dox.h:100
*hash< auto > searchSingleRecordImpl(hash< auto > where_cond, *hash< auto > search_options)
Returns a single record matching the search options.
rollback()
Rolls back data written to the data provider.
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Writes the given record to the data provider.
DbTableRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
string getName()
Returns the data provider name.
const CreateOptions
Create options; see details below.
Definition: DbTableDataProvider.qc.dox.h:58
constructor(AbstractTable table)
Creates the object.
bool updateSingleRecordImpl(hash< auto > set, hash< auto > where_cond, *hash< auto > search_options)
Updates a single record matching the search options.
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:32
AbstractDataProviderBulkOperation getBulkUpserter()
Returns a bulk upsert operation object for the data provider.
const ConstructorOptions
Constructor options.
Definition: DbTableDataProvider.qc.dox.h:45
AbstractDataProviderBulkRecordInterface searchRecordsBulkImpl(int block_size=1000, *hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.