libdballe
7.29
|
Precompiled queries to manipulate the attr table. More...
#include <attrv6.h>
Public Member Functions | |
MySQLAttrV6 (dballe::sql::MySQLConnection &conn) | |
MySQLAttrV6 (const MySQLAttrV6 &)=delete | |
MySQLAttrV6 (const MySQLAttrV6 &&)=delete | |
MySQLAttrV6 & | operator= (const MySQLAttrV6 &)=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. | |
![]() | |
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::MySQLConnection & | 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.
id_data | ID of the data row for the value of which we will read attributes |
dest | Function that will be called to consume the attrbutes as they are loaded. |
Implements dballe::db::v6::AttrV6.
|
protected |
DB connection.