22 #ifndef DBALLE_DB_SQLITE_LEVTRV6_H
23 #define DBALLE_DB_SQLITE_LEVTRV6_H
26 #include <dballe/db/sql/levtr.h>
27 #include <dballe/db/sqlite/internals.h>
81 const DBRow*
read(
int id)
override;
82 void read_all(std::function<
void(
const DBRow&)> dest)
override;
87 void dump(FILE* out)
override;
SQLiteStatement * dstm
Precompiled delete statement.
Definition: db/sqlite/levtr.h:64
void dump(FILE *out) override
Dump the entire contents of the table to an output stream.
SQLite statement.
Definition: sqlite/internals.h:124
const DBRow * read(int id) override
Read the LevTr data for an id, returns nullptr if not found.
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:565
Database connection.
Definition: sqlite/internals.h:56
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Vertical level or layer.
Definition: types.h:515
Functions used to connect to DB-All.e and insert, query and delete data.
SQLiteConnection & conn
DB connection.
Definition: db/sqlite/levtr.h:55
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...
SQLiteStatement * sdstm
Precompiled select data statement.
Definition: db/sqlite/levtr.h:60
SQLiteStatement * istm
Precompiled insert statement.
Definition: db/sqlite/levtr.h:62
Precompiled queries to manipulate the lev_tr table.
Definition: db/sql/levtr.h:46
Precompiled queries to manipulate the lev_tr table.
Definition: db/sqlite/levtr.h:49
SQLiteStatement * sstm
Precompiled select statement.
Definition: db/sqlite/levtr.h:58