Database connection.
Definition: postgresql.h:240
dballe::sql::PostgreSQLConnection & conn
DB connection.
Definition: v6/postgresql/levtr.h:32
Precompiled queries to manipulate the lev_tr table.
Definition: v6/postgresql/levtr.h:26
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...
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.