|
libdballe
8.6
|
Precompiled queries to manipulate the lev_tr table. More...
#include <levtr.h>
Public Member Functions | |
| SQLiteLevTr (v7::Transaction &tr, dballe::sql::SQLiteConnection &conn) | |
| SQLiteLevTr (const LevTr &)=delete | |
| SQLiteLevTr (const LevTr &&)=delete | |
| SQLiteLevTr & | operator= (const SQLiteLevTr &)=delete |
| void | prefetch_ids (Tracer<> &trc, const std::set< int > &id) override |
| Given a set of IDs, load LevTr information for them and add it to the cache. | |
| const LevTrEntry * | lookup_id (Tracer<> &trc, int id) override |
| Look up a LevTr from the database given its ID. | |
| int | obtain_id (Tracer<> &trc, const LevTrEntry &desc) override |
| Look up a LevTr from the database given its description. More... | |
Public Member Functions inherited from dballe::db::v7::LevTr | |
| LevTr (v7::Transaction &tr) | |
| void | clear_cache () |
| Invalidate the LevTrEntry cache. More... | |
| impl::msg::Context * | to_msg (Tracer<> &trc, int id, impl::Message &msg) |
| Get/create a Context in the Msg for this level/timerange. More... | |
| const LevTrEntry & | lookup_cache (int id) |
| Lookup a LevTr entry from the cache, throwing an exception if it is not found. | |
| void | dump (FILE *out) |
| Dump the entire contents of the table to an output stream. | |
Protected Member Functions | |
| void | _dump (std::function< void(int, const Level &, const Trange &)> out) override |
Protected Attributes | |
| dballe::sql::SQLiteConnection & | conn |
| DB connection. | |
| dballe::sql::SQLiteStatement * | sstm = nullptr |
| Precompiled select statement. | |
| dballe::sql::SQLiteStatement * | sdstm = nullptr |
| Precompiled select data statement. | |
| dballe::sql::SQLiteStatement * | istm = nullptr |
| Precompiled insert statement. | |
| dballe::sql::SQLiteStatement * | dstm = nullptr |
| Precompiled delete statement. | |
Protected Attributes inherited from dballe::db::v7::LevTr | |
| v7::Transaction & | tr |
| LevTrCache | cache |
Precompiled queries to manipulate the lev_tr table.
|
overridevirtual |
Look up a LevTr from the database given its description.
Insert a new one if not found.
Implements dballe::db::v7::LevTr.
1.8.16