libdballe  7.21
Public Member Functions | Protected Attributes | List of all members
dballe::db::v6::postgresql::PostgreSQLAttrV6 Class Reference

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

#include <attrv6.h>

Inheritance diagram for dballe::db::v6::postgresql::PostgreSQLAttrV6:
dballe::db::v6::AttrV6

Public Member Functions

 PostgreSQLAttrV6 (dballe::sql::PostgreSQLConnection &conn)
 
 PostgreSQLAttrV6 (const PostgreSQLAttrV6 &)=delete
 
 PostgreSQLAttrV6 (const PostgreSQLAttrV6 &&)=delete
 
PostgreSQLAttrV6operator= (const PostgreSQLAttrV6 &)=delete
 
void insert (dballe::sql::Transaction &t, v6::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::v6::AttrV6
void insert_attributes (dballe::sql::Transaction &t, int id_data, const wreport::Var &var, UpdateMode update_mode=UPDATE)
 Insert all attributes of the given variable.
 

Protected Attributes

dballe::sql::PostgreSQLConnectionconn
 DB connection. More...
 

Additional Inherited Members

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

Detailed Description

Precompiled queries to manipulate the attr table.

Member Function Documentation

§ read()

void dballe::db::v6::postgresql::PostgreSQLAttrV6::read ( int  id_data,
std::function< void(std::unique_ptr< wreport::Var >)>  dest 
)
overridevirtual

Load from the database all the attributes for var.

Parameters
id_dataID of the data row for the value of which we will read attributes
destFunction that will be called to consume the attrbutes as they are loaded.

Implements dballe::db::v6::AttrV6.

Member Data Documentation

§ conn

dballe::sql::PostgreSQLConnection& dballe::db::v6::postgresql::PostgreSQLAttrV6::conn
protected

DB connection.


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