libdballe
7.6
|
Precompiled queries to manipulate the attr table. More...
#include <attrv6.h>
Public Member Functions | |
PostgreSQLAttrV6 (PostgreSQLConnection &conn) | |
PostgreSQLAttrV6 (const PostgreSQLAttrV6 &)=delete | |
PostgreSQLAttrV6 (const PostgreSQLAttrV6 &&)=delete | |
PostgreSQLAttrV6 & | operator= (const PostgreSQLAttrV6 &)=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. | |
![]() | |
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 | |
PostgreSQLConnection & | conn |
DB connection. More... | |
Additional Inherited Members | |
![]() | |
enum | UpdateMode { UPDATE, IGNORE, ERROR } |
Precompiled queries to manipulate the attr table.
|
overridevirtual |
Load from the database all the attributes for var.
var | wreport::Var to which the resulting attributes will be added |
Implements dballe::db::sql::AttrV6.
|
protected |
DB connection.