1 #ifndef DBALLE_DB_V7_MYSQL_LEVTRV7_H
2 #define DBALLE_DB_V7_MYSQL_LEVTRV7_H
5 #include <dballe/db/v7/levtr.h>
6 #include <dballe/db/v7/fwd.h>
28 void _dump(std::function<
void(
int,
const Level&,
const Trange&)> out)
override;
Precompiled queries to manipulate the lev_tr table.
Definition: mysql/levtr.h:20
Smart pointer for trace::Step objects, which calls done() when going out of scope.
Definition: db/v7/fwd.h:45
Definition: transaction.h:15
int obtain_id(Tracer<> &trc, const LevTrEntry &desc) override
Look up a LevTr from the database given its description.
void prefetch_ids(Tracer<> &trc, const std::set< int > &ids) override
Given a set of IDs, load LevTr information for them and add it to the cache.
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:686
Precompiled queries to manipulate the lev_tr table.
Definition: levtr.h:20
Vertical level or layer.
Definition: types.h:624
const LevTrEntry * lookup_id(Tracer<> &trc, int id) override
Look up a LevTr from the database given its ID.
Database connection.
Definition: mysql.h:126
dballe::sql::MySQLConnection & conn
DB connection.
Definition: mysql/levtr.h:26