libdballe  9.11
Public Member Functions | List of all members
dballe::db::v7::sqlite::SQLiteStationData Class Reference

Precompiled query to manipulate the station data table. More...

#include <data.h>

Inheritance diagram for dballe::db::v7::sqlite::SQLiteStationData:
dballe::db::v7::sqlite::SQLiteDataCommon< StationData > dballe::db::v7::StationData dballe::db::v7::DataCommon< StationDataTraits >

Public Member Functions

 SQLiteStationData (v7::Transaction &tr, dballe::sql::SQLiteConnection &conn)
 
void query (Tracer<> &trc, int id_station, std::function< void(int id, wreport::Varcode code)> dest) override
 Query contents of the data table.
 
void insert (Tracer<> &trc, int id_station, std::vector< batch::StationDatum > &vars, bool with_attrs) override
 Bulk variable insert.
 
void run_station_data_query (Tracer<> &trc, const v7::DataQueryBuilder &qb, std::function< void(const dballe::DBStation &station, int id_data, std::unique_ptr< wreport::Var > var)>) override
 Run a station data query, iterating on the resulting variables.
 
void dump (FILE *out) override
 Dump the entire contents of the table to an output stream.
 
void clear_cache () override
 
 SQLiteDataCommon (v7::Transaction &tr, dballe::sql::SQLiteConnection &conn)
 
 SQLiteDataCommon (const SQLiteDataCommon &)=delete
 
 SQLiteDataCommon (const SQLiteDataCommon &&)=delete
 
- Public Member Functions inherited from dballe::db::v7::sqlite::SQLiteDataCommon< StationData >
 SQLiteDataCommon (v7::Transaction &tr, dballe::sql::SQLiteConnection &conn)
 
 SQLiteDataCommon (const SQLiteDataCommon &)=delete
 
 SQLiteDataCommon (const SQLiteDataCommon &&)=delete
 
SQLiteDataCommonoperator= (const SQLiteDataCommon &)=delete
 
void update (Tracer<> &trc, std::vector< typename StationData ::BatchValue > &vars, bool with_attrs) override
 
void read_attrs (Tracer<> &trc, int id_data, std::function< void(std::unique_ptr< wreport::Var >)> dest) override
 
void write_attrs (Tracer<> &trc, int id_data, const Values &values) override
 
void remove_all_attrs (Tracer<> &trc, int id_data) override
 
void remove (Tracer<> &trc, const v7::IdQueryBuilder &qb) override
 
void remove_by_id (Tracer<> &trc, int id) override
 
- Public Member Functions inherited from dballe::db::v7::DataCommon< StationDataTraits >
 DataCommon (v7::Transaction &tr)
 
void merge_attrs (Tracer<> &trc, int id_data, const Values &attrs)
 Merge the given attributes with the existing attributes of the given variable: More...
 
void remove_attrs (Tracer<> &trc, int data_id, const db::AttrList &attrs)
 Remove the given attributes from the given variable, if they exist.
 
virtual void update (Tracer<> &trc, std::vector< typename StationDataTraits ::BatchValue > &vars, bool with_attrs)=0
 Bulk variable update.
 

Additional Inherited Members

- Protected Types inherited from dballe::db::v7::DataCommon< StationDataTraits >
typedef StationDataTraits ::BatchValue BatchValue
 
- Protected Member Functions inherited from dballe::db::v7::DataCommon< StationDataTraits >
void read_attrs_into_values (Tracer<> &trc, int id_data, Values &values)
 Load attributes from the database into a Values.
 
void read_attrs_into_values (Tracer<> &trc, int id_data, Values &values, const db::AttrList &exclude)
 Load attributes from the database into a Values, except those whose Varcode is in exclude
 
- Protected Attributes inherited from dballe::db::v7::sqlite::SQLiteDataCommon< StationData >
dballe::sql::SQLiteConnectionconn
 DB connection.
 
dballe::sql::SQLiteStatementread_attrs_stm
 Precompiled read attributes statement.
 
dballe::sql::SQLiteStatementwrite_attrs_stm
 Precompiled write attributes statement.
 
dballe::sql::SQLiteStatementremove_attrs_stm
 Precompiled remove attributes statement.
 
dballe::sql::SQLiteStatementsstm
 Precompiled select statement.
 
dballe::sql::SQLiteStatementistm
 Precompiled insert statement.
 
dballe::sql::SQLiteStatementustm
 Precompiled update statement.
 
- Protected Attributes inherited from dballe::db::v7::DataCommon< StationDataTraits >
v7::Transactiontr
 
- Static Protected Attributes inherited from dballe::db::v7::DataCommon< StationDataTraits >
static const char * table_name
 

Detailed Description

Precompiled query to manipulate the station data table.


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