libdballe  7.29
Public Types | Public Member Functions | List of all members
dballe::db::v6::AttrV6 Struct Referenceabstract

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

#include <attrv6.h>

Inheritance diagram for dballe::db::v6::AttrV6:
dballe::db::v6::mysql::MySQLAttrV6 dballe::db::v6::postgresql::PostgreSQLAttrV6 dballe::db::v6::sqlite::SQLiteAttrV6

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.
 

Detailed Description

Precompiled queries to manipulate the attr table.

Member Function Documentation

virtual void dballe::db::v6::AttrV6::read ( int  id_data,
std::function< void(std::unique_ptr< wreport::Var >)>  dest 
)
pure virtual

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.

Implemented in dballe::db::v6::sqlite::SQLiteAttrV6, dballe::db::v6::mysql::MySQLAttrV6, and dballe::db::v6::postgresql::PostgreSQLAttrV6.


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