22 #ifndef DBALLE_DB_ODBC_LEV_TR_H
23 #define DBALLE_DB_ODBC_LEV_TR_H
32 #include <dballe/db/sql/levtr.h>
111 const DBRow*
read(
int id)
override;
112 void read_all(std::function<
void(
const DBRow&)> dest)
override;
117 void dump(FILE* out)
override;
Precompiled queries to manipulate the lev_tr table.
Definition: db/odbc/levtr.h:55
int get_id()
Get the lev_tr id for the current lev_tr data.
ODBC statement.
Definition: odbc/internals.h:170
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
ODBCStatement * sstm
Precompiled select statement.
Definition: db/odbc/levtr.h:67
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
ODBCStatement * istm
Precompiled insert statement.
Definition: db/odbc/levtr.h:71
Vertical level or layer.
Definition: types.h:515
Functions used to connect to DB-All.e and insert, query and delete data.
db::Sequence * seq_lev_tr
lev_tr ID sequence, for databases that need it
Definition: db/odbc/levtr.h:64
ODBCStatement * sdstm
Precompiled select data statement.
Definition: db/odbc/levtr.h:69
int insert()
Insert a new lev_tr in the database.
ODBCStatement * dstm
Precompiled delete statement.
Definition: db/odbc/levtr.h:73
void dump(FILE *out) override
Dump the entire contents of the table to an output stream.
ODBC statement to read a sequence.
Definition: odbc/internals.h:247
ODBCConnection & conn
DB connection.
Definition: db/odbc/levtr.h:61
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 functions and data structures used by the db module, but not exported as official API...
Precompiled queries to manipulate the lev_tr table.
Definition: db/sql/levtr.h:46
Database connection.
Definition: odbc/internals.h:87