|
libdballe
7.7
|
Precompiled queries to manipulate the attr table. More...
#include <attrv6.h>
Public Types | |
| enum | UpdateMode { UPDATE, IGNORE, ERROR } |
Public Member Functions | |
| void | insert_attributes (Transaction &t, int id_data, const wreport::Var &var, UpdateMode update_mode=UPDATE) |
| Insert all attributes of the given variable. | |
| virtual void | insert (Transaction &t, sql::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.
| var | wreport::Var to which the resulting attributes will be added |
Implemented in dballe::db::odbc::ODBCAttrV6, dballe::db::sqlite::SQLiteAttrV6, dballe::db::mysql::MySQLAttrV6, and dballe::db::postgresql::PostgreSQLAttrV6.
1.8.9.1