DbDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// minimum required Qore version
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// enable all warnings
namespace DbDataProvider {
class DbDataProvider : public AbstractDataProvider {
public:
const ProviderInfo = ...;
const ConstructorOptions = ...;
const SearchOptions = ...;
protected:
AbstractDatabase db;
static *code datasource_lookup;
static *code table_lookup;
public:
constructor(AbstractDatasource ds, *hash<auto> opts);
constructor(AbstractDatabase db);
constructor(*hash<auto> options);
string getName();
commit();
rollback();
static *hash<string, AbstractDataField> getRecordTypeFromDescribeHash(hash<auto> describe_hash);
protected:
*hash<string, AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
public:
protected:
AbstractDataProviderBulkRecordInterface searchRecordsBulkImpl(int block_size = 1000, *hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
*list<string> getChildProviderNamesImpl();
public:
protected:
*AbstractDataProvider getChildProviderImpl(string name);
public:
protected:
hash<DataProviderInfo> getStaticInfoImpl();
public:
static setDatasourceLookup(code datasource_lookup);
static setTableLookup(code table_lookup);
static AbstractDatasource getDatasource(AbstractDatasource ds);
static AbstractDatasource getDatasource(string ds_string);
static AbstractTable getTable(string ds_string, string table_string);
static AbstractTable getTable(AbstractDatasource ds, string table_string);
};
};
DbDataProvider::DbDataProvider::datasource_lookup
static *code datasource_lookup
Lookup to get an abstract datasource from a name.
Definition: DbDataProvider.qc.dox.h:54
DbDataProvider::DbDataProvider::db
AbstractDatabase db
The database object.
Definition: DbDataProvider.qc.dox.h:51
DbDataProvider::DbDataProvider::table_lookup
static *code table_lookup
Lookup to get an abstract table from a datasource and a name.
Definition: DbDataProvider.qc.dox.h:57
DbDataProvider
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:32