libdballe  7.21
Public Member Functions | Protected Attributes | List of all members
dballe::db::v6::sqlite::SQLiteLevTrV6 Struct Reference

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

#include <levtr.h>

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

Public Member Functions

 SQLiteLevTrV6 (dballe::sql::SQLiteConnection &conn)
 
 SQLiteLevTrV6 (const LevTr &)=delete
 
 SQLiteLevTrV6 (const LevTr &&)=delete
 
SQLiteLevTrV6 & operator= (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
 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

dballe::sql::SQLiteConnection & conn
 DB connection.
 
dballe::sql::SQLiteStatement * sstm = nullptr
 Precompiled select statement.
 
dballe::sql::SQLiteStatement * sdstm = nullptr
 Precompiled select data statement.
 
dballe::sql::SQLiteStatement * istm = nullptr
 Precompiled insert statement.
 
dballe::sql::SQLiteStatement * dstm = 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: