/usr/include/dballe/db/v7/mysql/driver.h is in libdballe-dev 7.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #ifndef DBALLE_DB_V7_MYSQL_DRIVER_H
#define DBALLE_DB_V7_MYSQL_DRIVER_H
#include <dballe/db/v7/driver.h>
#include <dballe/sql/fwd.h>
namespace dballe {
namespace db {
namespace v7 {
namespace mysql {
struct Driver : public v7::Driver
{
dballe::sql::MySQLConnection& conn;
Driver(dballe::sql::MySQLConnection& conn);
virtual ~Driver();
std::unique_ptr<v7::Repinfo> create_repinfo() override;
std::unique_ptr<v7::Station> create_station() override;
std::unique_ptr<v7::LevTr> create_levtr() override;
std::unique_ptr<v7::StationData> create_station_data() override;
std::unique_ptr<v7::Data> create_data() override;
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;
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;
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;
void create_tables_v7() override;
void delete_tables_v7() override;
void vacuum_v7() override;
};
}
}
}
}
#endif
|