1 #ifndef DBALLE_DB_V6_SQLITE_ATTRV6_H
2 #define DBALLE_DB_V6_SQLITE_ATTRV6_H
4 #include <dballe/db/v6/attrv6.h>
36 void read(
int id_data, std::function<
void(std::unique_ptr<wreport::Var>)> dest)
override;
37 void dump(FILE* out)
override;
dballe::sql::SQLiteStatement * sstm
Precompiled select statement.
Definition: sqlite/attrv6.h:22
void read(int id_data, std::function< void(std::unique_ptr< wreport::Var >)> dest) override
Load from the database all the attributes for var.
Forward declarations for public dballe/sql names.
dballe::sql::SQLiteConnection & conn
DB connection.
Definition: sqlite/attrv6.h:19
dballe::sql::SQLiteStatement * istm
Precompiled insert statement.
Definition: sqlite/attrv6.h:24
A RAII transaction interface.
Definition: sql.h:133
void dump(FILE *out) override
Dump the entire contents of the table to an output stream.
void insert(dballe::sql::Transaction &t, v6::bulk::InsertAttrsV6 &vars, UpdateMode update_mode=UPDATE) override
Bulk attribute insert.
SQLite statement.
Definition: sqlite.h:89
dballe::sql::SQLiteStatement * ustm
Precompiled update statement.
Definition: sqlite/attrv6.h:26
Precompiled queries to manipulate the attr table.
Definition: attrv6.h:26
Precompiled queries to manipulate the attr table.
Definition: sqlite/attrv6.h:15
Database connection.
Definition: sqlite.h:34