22 #ifndef DBALLE_DB_MYSQL_LEVTRV6_H
23 #define DBALLE_DB_MYSQL_LEVTRV6_H
26 #include <dballe/db/sql/levtr.h>
27 #include <dballe/db/mysql/internals.h>
69 const DBRow*
read(
int id)
override;
70 void read_all(std::function<
void(
const DBRow&)> dest)
override;
75 void dump(FILE* out)
override;
const DBRow * read(int id) override
Read the LevTr data for an id, returns nullptr if not found.
Database connection.
Definition: mysql/internals.h:145
void dump(FILE *out) override
Dump the entire contents of the table to an output stream.
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:565
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.
Precompiled queries to manipulate the lev_tr table.
Definition: db/mysql/levtr.h:48
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...
Precompiled queries to manipulate the lev_tr table.
Definition: db/sql/levtr.h:46
MySQLConnection & conn
DB connection.
Definition: db/mysql/levtr.h:52