libdballe  7.7
Public Member Functions | Protected Attributes
dballe::db::sqlite::SQLiteAttrV6 Class Reference

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

#include <attrv6.h>

Inheritance diagram for dballe::db::sqlite::SQLiteAttrV6:
dballe::db::sql::AttrV6

Public Member Functions

 SQLiteAttrV6 (SQLiteConnection &conn)
 
 SQLiteAttrV6 (const SQLiteAttrV6 &)=delete
 
 SQLiteAttrV6 (const SQLiteAttrV6 &&)=delete
 
SQLiteAttrV6operator= (const SQLiteAttrV6 &)=delete
 
void insert (Transaction &t, sql::bulk::InsertAttrsV6 &vars, UpdateMode update_mode=UPDATE) override
 Bulk attribute insert.
 
void read (int id_data, std::function< void(std::unique_ptr< wreport::Var >)> dest) override
 Load from the database all the attributes for var. More...
 
void dump (FILE *out) override
 Dump the entire contents of the table to an output stream.
 
- Public Member Functions inherited from dballe::db::sql::AttrV6
void insert_attributes (Transaction &t, int id_data, const wreport::Var &var, UpdateMode update_mode=UPDATE)
 Insert all attributes of the given variable.
 

Protected Attributes

SQLiteConnectionconn
 DB connection. More...
 
SQLiteStatementsstm = nullptr
 Precompiled select statement.
 
SQLiteStatementistm = nullptr
 Precompiled insert statement.
 
SQLiteStatementustm = nullptr
 Precompiled update statement.
 

Additional Inherited Members

- Public Types inherited from dballe::db::sql::AttrV6
enum  UpdateMode { UPDATE, IGNORE, ERROR }
 

Detailed Description

Precompiled queries to manipulate the attr table.

Member Function Documentation

void dballe::db::sqlite::SQLiteAttrV6::read ( int  id_data,
std::function< void(std::unique_ptr< wreport::Var >)>  dest 
)
overridevirtual

Load from the database all the attributes for var.

Parameters
varwreport::Var to which the resulting attributes will be added
Returns
The error indicator for the function (See error.h)

Implements dballe::db::sql::AttrV6.

Field Documentation

SQLiteConnection& dballe::db::sqlite::SQLiteAttrV6::conn
protected

DB connection.


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