22 #ifndef DBALLE_DB_V5_ATTR_H
23 #define DBALLE_DB_V5_ATTR_H
32 #include <wreport/var.h>
80 void set(
const wreport::Var& var);
108 void load(wreport::Var& var);
113 void dump(FILE* out);
db::Statement * sstm
Precompiled select statement.
Definition: v5/attr.h:54
void load(wreport::Var &var)
Load from the database all the attributes for var.
db::Statement * rstm
Precompiled replace statement.
Definition: v5/attr.h:58
Database connection.
Definition: internals.h:124
Precompiled queries to manipulate the attr table.
Definition: v5/attr.h:48
DBALLE_SQL_C_SINT_TYPE id_context
context id SQL parameter
Definition: v5/attr.h:61
The ODBC specification is imperfect with regards to integer sizes on 64bit platforms, and different ODBC drivers are currently interpreting it differently.
char value[255]
attribute value SQL parameter
Definition: v5/attr.h:67
void set_value(const char *value)
Set the value input field from a string.
db::Connection & conn
DB connection.
Definition: v5/attr.h:51
void set(const wreport::Var &var)
Set the input fields using the values in a wreport::Var.
ODBC statement.
Definition: internals.h:220
SQLLEN value_ind
attribute value indicator
Definition: v5/attr.h:69
void insert()
Insert an entry into the attr table.
void dump(FILE *out)
Dump the entire contents of the table to an output stream.
wreport::Varcode id_var
variable id SQL parameter
Definition: v5/attr.h:63
db::Statement * istm
Precompiled insert statement.
Definition: v5/attr.h:56
wreport::Varcode type
attribute id SQL parameter
Definition: v5/attr.h:65