libdballe
7.21
|
Precompiled queries to manipulate the attr table. More...
#include <attrv6.h>
Public Types | |
enum | UpdateMode { UPDATE, IGNORE, ERROR } |
Public Member Functions | |
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. | |
virtual void | insert (dballe::sql::Transaction &t, v6::bulk::InsertAttrsV6 &vars, UpdateMode update_mode=UPDATE)=0 |
Bulk attribute insert. | |
virtual void | read (int id_data, std::function< void(std::unique_ptr< wreport::Var >)> dest)=0 |
Load from the database all the attributes for var. More... | |
virtual void | dump (FILE *out)=0 |
Dump the entire contents of the table to an output stream. | |
Precompiled queries to manipulate the attr table.
|
pure virtual |
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. |
Implemented in dballe::db::v6::sqlite::SQLiteAttrV6, dballe::db::v6::mysql::MySQLAttrV6, and dballe::db::v6::postgresql::PostgreSQLAttrV6.