libdballe
9.11
|
Public Member Functions | |
Driver (sql::Connection &connection) | |
virtual std::unique_ptr< v7::Repinfo > | create_repinfo (v7::Transaction &tr)=0 |
Precompiled queries to manipulate the repinfo table. | |
virtual std::unique_ptr< v7::Station > | create_station (v7::Transaction &tr)=0 |
Precompiled queries to manipulate the station table. | |
virtual std::unique_ptr< v7::LevTr > | create_levtr (v7::Transaction &tr)=0 |
Precompiled queries to manipulate the levtr table. | |
virtual std::unique_ptr< v7::StationData > | create_station_data (v7::Transaction &tr)=0 |
Precompiled queries to manipulate the data table. | |
virtual std::unique_ptr< v7::Data > | create_data (v7::Transaction &tr)=0 |
Precompiled queries to manipulate the data table. | |
void | create_tables (db::Format format) |
Create all missing tables for a DB with the given format. | |
virtual void | create_tables_v7 ()=0 |
Create all missing tables for V7 databases. | |
void | delete_tables (db::Format format) |
Delete all existing tables for a DB with the given format. | |
virtual void | delete_tables_v7 ()=0 |
Delete all existing tables for V7 databases. | |
void | remove_all (db::Format format) |
Empty all tables for a DB with the given format. | |
virtual void | remove_all_v7 () |
Empty all tables for V7 databases, assuming that they exist, without touching the repinfo table. | |
virtual void | vacuum_v7 ()=0 |
Perform database cleanup/maintenance on v7 databases. | |
Static Public Member Functions | |
static std::unique_ptr< Driver > | create (dballe::sql::Connection &conn) |
Create a Driver for this connection. | |
Public Attributes | |
sql::Connection & | connection |