1 #ifndef DBALLE_DB_V7_SQLITE_LEVTRV7_H
2 #define DBALLE_DB_V7_SQLITE_LEVTRV7_H
5 #include <dballe/db/v7/levtr.h>
43 void _dump(std::function<
void(
int,
const Level&,
const Trange&)> out)
override;
52 void prefetch_ids(
const std::set<int>& ids, std::function<
void(
int,
const LevTrDesc&)> dest)
override;
dballe::sql::SQLiteConnection & conn
DB connection.
Definition: v7/sqlite/levtr.h:32
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
Forward declarations for public dballe/sql names.
levtrs_t::iterator lookup_id(State &st, int id) override
Look up a LevTr from the database given its ID.
Vertical level or layer.
Definition: types.h:532
Functions used to connect to DB-All.e and insert, query and delete data.
dballe::sql::SQLiteStatement * sstm
Precompiled select statement.
Definition: v7/sqlite/levtr.h:35
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. ...
Precompiled queries to manipulate the lev_tr table.
Definition: v7/levtr.h:25
dballe::sql::SQLiteStatement * istm
Precompiled insert statement.
Definition: v7/sqlite/levtr.h:39
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/sqlite/levtr.h:26
SQLite statement.
Definition: sqlite.h:89
dballe::sql::SQLiteStatement * sdstm
Precompiled select data statement.
Definition: v7/sqlite/levtr.h:37
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.
dballe::sql::SQLiteStatement * dstm
Precompiled delete statement.
Definition: v7/sqlite/levtr.h:41
Database connection.
Definition: sqlite.h:34