1 #ifndef DBALLE_DB_V6_SQLITE_LEVTRV6_H
2 #define DBALLE_DB_V6_SQLITE_LEVTRV6_H
5 #include <dballe/db/v6/levtr.h>
59 void read_all(std::function<
void(
const DBRow&)> dest)
override;
64 void dump(FILE* out)
override;
dballe::sql::SQLiteStatement * istm
Precompiled insert statement.
Definition: v6/sqlite/levtr.h:39
void read_all(std::function< void(const DBRow &)> dest) override
Read the contents of the LevTr table.
Precompiled queries to manipulate the lev_tr table.
Definition: v6/sqlite/levtr.h:26
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.
dballe::sql::SQLiteConnection & conn
DB connection.
Definition: v6/sqlite/levtr.h:32
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: v6/sqlite/levtr.h:35
Definition: v6/levtr.h:25
const DBRow * read(int id) override
Read the LevTr data for an id, returns nullptr if not found.
dballe::sql::SQLiteStatement * dstm
Precompiled delete statement.
Definition: v6/sqlite/levtr.h:41
Precompiled queries to manipulate the lev_tr table.
Definition: v6/levtr.h:23
dballe::sql::SQLiteStatement * sdstm
Precompiled select data statement.
Definition: v6/sqlite/levtr.h:37
SQLite statement.
Definition: sqlite.h:89
void dump(FILE *out) override
Dump the entire contents of the table to an output stream.
int obtain_id(const Level &lev, const Trange &tr) override
Return the ID for the given Level and Trange, adding it to the database if it does not already exist...
Database connection.
Definition: sqlite.h:34