libdballe  7.29
Public Member Functions | Public Attributes | List of all members
dballe::db::v7::mysql::Driver Struct Reference
Inheritance diagram for dballe::db::v7::mysql::Driver:
dballe::db::v7::Driver

Public Member Functions

 Driver (dballe::sql::MySQLConnection &conn)
 
std::unique_ptr< v7::Repinfocreate_repinfo () override
 Precompiled queries to manipulate the repinfo table.
 
std::unique_ptr< v7::Stationcreate_station () override
 Precompiled queries to manipulate the station table.
 
std::unique_ptr< v7::LevTrcreate_levtr () override
 Precompiled queries to manipulate the levtr table.
 
std::unique_ptr< v7::StationDatacreate_station_data () override
 Precompiled queries to manipulate the data table.
 
std::unique_ptr< v7::Datacreate_data () override
 Precompiled queries to manipulate the data table.
 
void run_station_query (const v7::StationQueryBuilder &qb, std::function< void(int id, const StationDesc &)>) override
 
void run_station_data_query (const v7::DataQueryBuilder &qb, std::function< void(int id_station, const StationDesc &station, int id_data, std::unique_ptr< wreport::Var > var)>) override
 Run a station data query, iterating on the resulting variables.
 
void run_data_query (const v7::DataQueryBuilder &qb, std::function< void(int id_station, const StationDesc &station, int id_levtr, const Datetime &datetime, int id_data, std::unique_ptr< wreport::Var > var)>) override
 Run a data query, iterating on the resulting variables.
 
void run_summary_query (const v7::SummaryQueryBuilder &qb, std::function< void(int id_station, const StationDesc &station, int id_levtr, wreport::Varcode code, const DatetimeRange &datetime, size_t size)>) override
 Run a summary query, iterating on the resulting variables.
 
void create_tables_v7 () override
 Create all missing tables for V7 databases.
 
void delete_tables_v7 () override
 Delete all existing tables for V7 databases.
 
void vacuum_v7 () override
 Perform database cleanup/maintenance on v7 databases.
 
- Public Member Functions inherited from dballe::db::v7::Driver
 Driver (sql::Connection &connection)
 
virtual void run_station_query (const v7::StationQueryBuilder &qb, std::function< void(int id_station, const StationDesc &station)>)=0
 Run a station query, iterating on the resulting stations.
 
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_v7 ()
 Empty all tables for V7 databases, assuming that they exist, without touching the repinfo table.
 

Public Attributes

dballe::sql::MySQLConnectionconn
 
- Public Attributes inherited from dballe::db::v7::Driver
sql::Connectionconnection
 

Additional Inherited Members

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

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