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: db/postgresql/levtr.h:49
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.
PostgreSQLConnection & conn
DB connection.
Definition: db/postgresql/levtr.h:55
Database connection.
Definition: postgresql/internals.h:249
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...