libdballe  7.7
Public Member Functions | Protected Attributes
dballe::db::sqlite::SQLiteLevTrV6 Struct Reference

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

#include <levtr.h>

Inheritance diagram for dballe::db::sqlite::SQLiteLevTrV6:
dballe::db::sql::LevTr

Public Member Functions

 SQLiteLevTrV6 (SQLiteConnection &conn)
 
 SQLiteLevTrV6 (const LevTr &)=delete
 
 SQLiteLevTrV6 (const LevTr &&)=delete
 
SQLiteLevTrV6operator= (const SQLiteLevTrV6 &)=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
 
void dump (FILE *out) override
 Dump the entire contents of the table to an output stream.
 
- Public Member Functions inherited from dballe::db::sql::LevTr
virtual void read_all (std::function< void(const DBRow &)> dest)=0
 Read the contents of the LevTr table.
 

Protected Attributes

SQLiteConnectionconn
 DB connection.
 
SQLiteStatementsstm = nullptr
 Precompiled select statement.
 
SQLiteStatementsdstm = nullptr
 Precompiled select data statement.
 
SQLiteStatementistm = nullptr
 Precompiled insert statement.
 
SQLiteStatementdstm = nullptr
 Precompiled delete statement.
 
DBRow working_row
 

Detailed Description

Precompiled queries to manipulate the lev_tr table.


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