libdballe
7.6
|
Public Member Functions | |
Driver (MySQLConnection &conn) | |
std::unique_ptr< sql::Repinfo > | create_repinfov6 () override |
Precompiled queries to manipulate the repinfo table. | |
std::unique_ptr< sql::Station > | create_stationv6 () override |
Precompiled queries to manipulate the station table. | |
std::unique_ptr< sql::LevTr > | create_levtrv6 () override |
Precompiled queries to manipulate the levtr table. | |
std::unique_ptr< sql::DataV6 > | create_datav6 () override |
Precompiled queries to manipulate the data table. | |
std::unique_ptr< sql::AttrV6 > | create_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. | |
void | explain (const std::string &query) override |
Outputs to stderr an explanation of the given query. | |
![]() | |
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. | |
Data Fields | |
MySQLConnection & | conn |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< Driver > | create (Connection &conn) |
Create a Driver for this connection. | |