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