|
virtual void | insert (Tracer<> &trc, int id_station, std::vector< batch::StationDatum > &vars, bool with_attrs)=0 |
| Bulk variable insert.
|
|
virtual void | query (Tracer<> &trc, int id_station, std::function< void(int id, wreport::Varcode code)> dest)=0 |
| Query contents of the data table.
|
|
virtual 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)>)=0 |
| Run a station data query, iterating on the resulting variables.
|
|
| DataCommon (v7::Transaction &tr) |
|
virtual void | read_attrs (Tracer<> &trc, int id_data, std::function< void(std::unique_ptr< wreport::Var >)> dest)=0 |
| Load from the database all the attributes for var.
|
|
void | merge_attrs (Tracer<> &trc, int id_data, const Values &attrs) |
| Merge the given attributes with the existing attributes of the given variable:
|
|
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 Traits::BatchValue > &vars, bool with_attrs)=0 |
| Bulk variable update.
|
|
virtual void | remove (Tracer<> &trc, const v7::IdQueryBuilder &qb)=0 |
| Run the query to delete all records selected by the given QueryBuilder.
|
|
virtual void | remove_by_id (Tracer<> &trc, int id)=0 |
| Run the query to delete the record with the given ID.
|
|
virtual void | dump (FILE *out)=0 |
| Dump the entire contents of the table to an output stream.
|
|
virtual void | clear_cache ()=0 |
|
|
typedef Traits::BatchValue | BatchValue |
|
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
|
|
virtual void | write_attrs (Tracer<> &trc, int id_data, const Values &values)=0 |
| Replace the attributes of a variable with those in Values.
|
|
virtual void | remove_all_attrs (Tracer<> &trc, int id_data)=0 |
| Remove all attributes from a variable.
|
|
v7::Transaction & | tr |
|
static const char * | table_name |
|