|
libdballe
7.7
|
Precompiled queries to manipulate the lev_tr table. More...
#include <levtr.h>
Public Member Functions | |
| PostgreSQLLevTrV6 (PostgreSQLConnection &conn) | |
| PostgreSQLLevTrV6 (const LevTr &)=delete | |
| PostgreSQLLevTrV6 (const LevTr &&)=delete | |
| PostgreSQLLevTrV6 & | operator= (const PostgreSQLLevTrV6 &)=delete |
| 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. | |
| const DBRow * | read (int id) override |
| Read the LevTr data for an id, returns nullptr if not found. | |
| void | read_all (std::function< void(const DBRow &)> dest) override |
| Read the contents of the LevTr table. | |
| void | dump (FILE *out) override |
| Dump the entire contents of the table to an output stream. | |
Protected Attributes | |
| PostgreSQLConnection & | conn |
| DB connection. | |
| DBRow | working_row |
Precompiled queries to manipulate the lev_tr table.
1.8.9.1