libdballe  7.29
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dballe::db::v6::Driver Struct Referenceabstract
Inheritance diagram for dballe::db::v6::Driver:
dballe::db::v6::mysql::Driver dballe::db::v6::postgresql::Driver dballe::db::v6::sqlite::Driver

Public Member Functions

 Driver (sql::Connection &connection)
 
virtual std::unique_ptr
< v6::Repinfo
create_repinfov6 ()=0
 Precompiled queries to manipulate the repinfo table.
 
virtual std::unique_ptr
< v6::Station
create_stationv6 ()=0
 Precompiled queries to manipulate the station table.
 
virtual std::unique_ptr
< v6::LevTr
create_levtrv6 ()=0
 Precompiled queries to manipulate the levtr table.
 
virtual std::unique_ptr
< v6::DataV6
create_datav6 ()=0
 Precompiled queries to manipulate the data table.
 
virtual std::unique_ptr
< v6::AttrV6
create_attrv6 ()=0
 Precompiled queries to manipulate the attr table.
 
virtual void run_built_query_v6 (const v6::QueryBuilder &qb, std::function< void(SQLRecordV6 &rec)> dest)=0
 Run a query on the given statement, returning results as SQLRecordV6 objects. More...
 
void create_tables (db::Format format)
 Create all missing tables for a DB with the given format.
 
virtual void create_tables_v6 ()=0
 Create all missing tables for V6 databases.
 
void delete_tables (db::Format format)
 Delete all existing tables for a DB with the given format.
 
virtual void delete_tables_v6 ()=0
 Delete all existing tables for V6 databases.
 
void remove_all (db::Format format)
 Empty all tables for a DB with the given format.
 
virtual void remove_all_v6 ()
 Empty all tables for V6 databases, assuming that they exist, without touching the repinfo table.
 
virtual void vacuum_v6 ()=0
 Perform database cleanup/maintenance on v6 databases.
 

Static Public Member Functions

static std::unique_ptr< Drivercreate (sql::Connection &conn)
 Create a Driver for this connection.
 

Public Attributes

sql::Connectionconnection
 

Member Function Documentation

virtual void dballe::db::v6::Driver::run_built_query_v6 ( const v6::QueryBuilder qb,
std::function< void(SQLRecordV6 &rec)>  dest 
)
pure virtual

Run a query on the given statement, returning results as SQLRecordV6 objects.

SQLRecordV6 is filled with the output variables according to which sel_* is true.

Query will dispatch to the right connector routines for the query, based on the actual implementation of stm.


The documentation for this struct was generated from the following file: