1 #ifndef DBALLE_DB_V6_MYSQL_LEVTRV6_H
2 #define DBALLE_DB_V6_MYSQL_LEVTRV6_H
5 #include <dballe/db/v6/levtr.h>
47 const DBRow*
read(
int id)
override;
48 void read_all(std::function<
void(
const DBRow&)> dest)
override;
53 void dump(FILE* out)
override;
void dump(FILE *out) override
Dump the entire contents of the table to an output stream.
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:587
Forward declarations for public dballe/sql names.
dballe::sql::MySQLConnection & conn
DB connection.
Definition: v6/mysql/levtr.h:30
Vertical level or layer.
Definition: types.h:532
Functions used to connect to DB-All.e and insert, query and delete data.
Precompiled queries to manipulate the lev_tr table.
Definition: v6/mysql/levtr.h:26
Precompiled queries to manipulate the lev_tr table.
Definition: v6/levtr.h:23
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: mysql.h:126