1 #ifndef DBALLE_DB_V6_DRIVER_H
2 #define DBALLE_DB_V6_DRIVER_H
5 #include <dballe/db/defs.h>
7 #include <wreport/var.h>
virtual std::unique_ptr< v6::AttrV6 > create_attrv6()=0
Precompiled queries to manipulate the attr table.
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.
virtual void create_tables_v6()=0
Create all missing tables for V6 databases.
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.
bool querybest_fields_are_the_same(const SQLRecordV6 &r)
Checks true if ana_id, id_ltr, datetime and varcode are the same in both records. ...
Forward declarations for public dballe/sql names.
Query results from SQL output.
Definition: v6/driver.h:24
Definition: v6/driver.h:52
void create_tables(db::Format format)
Create all missing tables for a DB with the given format.
virtual std::unique_ptr< v6::Repinfo > create_repinfov6()=0
Precompiled queries to manipulate the repinfo table.
virtual void remove_all_v6()
Empty all tables for V6 databases, assuming that they exist, without touching the repinfo table...
void dump(FILE *out)
Dump the record as a single line to the given output stream.
virtual std::unique_ptr< v6::Station > create_stationv6()=0
Precompiled queries to manipulate the station table.
Date and time.
Definition: types.h:158
virtual std::unique_ptr< v6::DataV6 > create_datav6()=0
Precompiled queries to manipulate the data table.
Build SQL queries for V6 databases.
Definition: v6/qbuilder.h:14
static std::unique_ptr< Driver > create(sql::Connection &conn)
Create a Driver for this connection.
virtual void vacuum_v6()=0
Perform database cleanup/maintenance on v6 databases.
virtual std::unique_ptr< v6::LevTr > create_levtrv6()=0
Precompiled queries to manipulate the levtr table.
virtual void delete_tables_v6()=0
Delete all existing tables for V6 databases.