1 #ifndef DBALLE_DB_V7_MYSQL_LEVTRV7_H
2 #define DBALLE_DB_V7_MYSQL_LEVTRV7_H
5 #include <dballe/db/v7/levtr.h>
34 void _dump(std::function<
void(
int,
const Level&,
const Trange&)> out)
override;
43 void prefetch_ids(
const std::set<int>& ids, std::function<
void(
int,
const LevTrDesc&)> dest)
override;
void prefetch_same_level(int id, std::function< void(int, const LevTrDesc &)> dest) override
Given an ID, load LevTr information for all the entries with the same level type. ...
Cache intermediate results during a database transaction, to avoid hitting the database multiple time...
Definition: state.h:140
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:587
levtrs_t::iterator lookup_id(State &st, int id) override
Look up a LevTr from the database given its ID.
Forward declarations for public dballe/sql names.
Vertical level or layer.
Definition: types.h:532
Functions used to connect to DB-All.e and insert, query and delete data.
void prefetch_ids(const std::set< int > &ids, std::function< void(int, const LevTrDesc &)> dest) override
Given a set of IDs, load LevTr information for them and add it to data.
Precompiled queries to manipulate the lev_tr table.
Definition: v7/levtr.h:25
dballe::sql::MySQLConnection & conn
DB connection.
Definition: v7/mysql/levtr.h:32
levtrs_t::iterator obtain_id(State &state, const LevTrDesc &desc) override
Look up a LevTr from the database given its description.
Precompiled queries to manipulate the lev_tr table.
Definition: v7/mysql/levtr.h:26
Database connection.
Definition: mysql.h:126