libdballe  7.6
Public Types | Public Member Functions
dballe::db::sql::AttrV6 Struct Referenceabstract

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

#include <attrv6.h>

Inheritance diagram for dballe::db::sql::AttrV6:
dballe::db::mysql::MySQLAttrV6 dballe::db::odbc::ODBCAttrV6 dballe::db::postgresql::PostgreSQLAttrV6 dballe::db::sqlite::SQLiteAttrV6

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.
 

Detailed Description

Precompiled queries to manipulate the attr table.

Member Function Documentation

virtual void dballe::db::sql::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
varwreport::Var to which the resulting attributes will be added
Returns
The error indicator for the function (See error.h)

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


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