|
libdballe
6.8
|
Precompiled queries to manipulate the attr table. More...
#include <attr.h>
Public Member Functions | |
| Attr (Connection &conn) | |
| void | set (const wreport::Var &var) |
| Set the input fields using the values in a wreport::Var. More... | |
| void | set_value (const char *value) |
| Set the value input field from a string. More... | |
| void | insert () |
| Insert an entry into the attr table. More... | |
| void | load (wreport::Var &var) |
| Load from the database all the attributes for var. More... | |
| void | dump (FILE *out) |
| Dump the entire contents of the table to an output stream. | |
Data Fields | |
| db::Connection & | conn |
| DB connection. More... | |
| db::Statement * | sstm |
| Precompiled select statement. | |
| db::Statement * | istm |
| Precompiled insert statement. | |
| db::Statement * | rstm |
| Precompiled replace statement. | |
| DBALLE_SQL_C_SINT_TYPE | id_data |
| id_data SQL parameter | |
| wreport::Varcode | type |
| attribute id SQL parameter | |
| char | value [255] |
| attribute value SQL parameter | |
| SQLLEN | value_ind |
| attribute value indicator | |
Precompiled queries to manipulate the attr table.
| void dballe::db::v6::Attr::insert | ( | ) |
Insert an entry into the attr table.
If set to true, an existing attribute with the same context and wreport::Varcode will be overwritten
| void dballe::db::v6::Attr::load | ( | wreport::Var & | var | ) |
Load from the database all the attributes for var.
| var | wreport::Var to which the resulting attributes will be added |
| void dballe::db::v6::Attr::set | ( | const wreport::Var & | var | ) |
Set the input fields using the values in a wreport::Var.
| var | The Var with the data to copy into ins |
| void dballe::db::v6::Attr::set_value | ( | const char * | value | ) |
Set the value input field from a string.
| value | The value to copy into ins |
| db::Connection& dballe::db::v6::Attr::conn |
DB connection.
1.8.8