libdballe  7.7
Public Member Functions | Data Fields
dballe::db::odbc::Driver Struct Reference
Inheritance diagram for dballe::db::odbc::Driver:
dballe::db::sql::Driver

Public Member Functions

 Driver (ODBCConnection &conn)
 
std::unique_ptr< sql::Repinfocreate_repinfov6 () override
 Precompiled queries to manipulate the repinfo table.
 
std::unique_ptr< sql::Stationcreate_stationv6 () override
 Precompiled queries to manipulate the station table.
 
std::unique_ptr< sql::LevTrcreate_levtrv6 () override
 Precompiled queries to manipulate the levtr table.
 
std::unique_ptr< sql::DataV6create_datav6 () override
 Precompiled queries to manipulate the data table.
 
std::unique_ptr< sql::AttrV6create_attrv6 () override
 Precompiled queries to manipulate the attr table.
 
void run_built_query_v6 (const v6::QueryBuilder &qb, std::function< void(sql::SQLRecordV6 &rec)> dest) override
 
void create_tables_v6 () override
 Create all missing tables for V6 databases.
 
void delete_tables_v6 () override
 Delete all existing tables for V6 databases.
 
void vacuum_v6 () override
 Perform database cleanup/maintenance on v6 databases.
 
void exec_no_data (const std::string &query) override
 Run a SQL query that is expected to return no data.
 
- Public Member Functions inherited from dballe::db::sql::Driver
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.
 
void delete_tables (db::Format format)
 Delete all existing tables for a DB with the given format.
 
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 explain (const std::string &query)
 Outputs to stderr an explanation of the given query.
 

Data Fields

ODBCConnectionconn
 

Additional Inherited Members

- Static Public Member Functions inherited from dballe::db::sql::Driver
static std::unique_ptr< Drivercreate (Connection &conn)
 Create a Driver for this connection.
 

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