DbDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DbDataProvider {
class DbDataProvider : public AbstractDataProvider {
public:
const ProviderInfo = ...;
const ConstructorOptions = ...;
const SearchOptions = ...;
const ChildCreateOptions = ...;
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();
beginTransaction();
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:
protected:
AbstractDataProvider createChildProviderImpl(string name, hash<string, AbstractDataField> fields, *hash<auto> child_create_options);
public:
protected:
deleteChildProviderImpl(string name, *hash<auto> child_delete_options);
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);
static hash<GenericColumnInfo> getColumnDesc(AbstractDatabase db, AbstractDataField field, *hash<auto> opts);
hash<auto> makeTableDesc(string name, hash<string, AbstractDataField> fields, *hash<auto> opts);
};
};
DbDataProvider::DbDataProvider::datasource_lookup
static *code datasource_lookup
Lookup to get an abstract datasource from a name.
Definition: DbDataProvider.qc.dox.h:52
DbDataProvider::DbDataProvider::db
AbstractDatabase db
The database object.
Definition: DbDataProvider.qc.dox.h:49
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:55
DbDataProvider
Qore AbstractDbRecordIterator class definition.
Definition: AbstractDbRecordIterator.qc.dox.h:32