libdballe  7.6
Public Member Functions | Static Public Member Functions
dballe::db::sql::Driver Struct Referenceabstract
Inheritance diagram for dballe::db::sql::Driver:
dballe::db::mysql::Driver dballe::db::odbc::Driver dballe::db::postgresql::Driver dballe::db::sqlite::Driver

Public Member Functions

virtual void exec_no_data (const std::string &query)=0
 Run a SQL query that is expected to return no data.
 
virtual std::unique_ptr< sql::Repinfocreate_repinfov6 ()=0
 Precompiled queries to manipulate the repinfo table.
 
virtual std::unique_ptr< sql::Stationcreate_stationv6 ()=0
 Precompiled queries to manipulate the station table.
 
virtual std::unique_ptr< sql::LevTrcreate_levtrv6 ()=0
 Precompiled queries to manipulate the levtr table.
 
virtual std::unique_ptr< sql::DataV6create_datav6 ()=0
 Precompiled queries to manipulate the data table.
 
virtual std::unique_ptr< sql::AttrV6create_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.
 
virtual void explain (const std::string &query)
 Outputs to stderr an explanation of the given query.
 

Static Public Member Functions

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

Member Function Documentation

virtual void dballe::db::sql::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: