libdballe  7.19
Classes | Public Member Functions | List of all members
dballe::db::v6::LevTr Struct Referenceabstract

Precompiled queries to manipulate the lev_tr table. More...

#include <levtr.h>

Inheritance diagram for dballe::db::v6::LevTr:
dballe::db::v6::mysql::MySQLLevTrV6 dballe::db::v6::postgresql::PostgreSQLLevTrV6 dballe::db::v6::sqlite::SQLiteLevTrV6

Classes

struct  DBRow
 

Public Member Functions

virtual int obtain_id (const Level &lev, const Trange &tr)=0
 Return the ID for the given Level and Trange, adding it to the database if it does not already exist.
 
virtual const DBRowread (int id)=0
 Read the LevTr data for an id, returns nullptr if not found.
 
virtual void read_all (std::function< void(const DBRow &)> dest)=0
 Read the contents of the LevTr table.
 
virtual void dump (FILE *out)=0
 Dump the entire contents of the table to an output stream.
 

Detailed Description

Precompiled queries to manipulate the lev_tr table.


The documentation for this struct was generated from the following file: