|
libdballe 5.10
|
Precompiled queries to manipulate the context table. More...
#include <context.h>
Public Member Functions | |
| Context (DB &db) | |
| int | get_id () |
| Get the context id for the current context data. | |
| void | get_data (int id) |
| Get context information given a context ID. | |
| int | obtain_station_info () |
| Get the context id for a station info context. | |
| int | insert () |
| Insert a new context in the database. | |
| void | remove () |
| Remove a context record. | |
| void | dump (FILE *out) |
| Dump the entire contents of the table to an output stream. | |
Data Fields | |
| DB & | db |
| DB connection. | |
| db::Statement * | sstm |
| Precompiled select statement. | |
| db::Statement * | sdstm |
| Precompiled select data statement. | |
| db::Statement * | istm |
| Precompiled insert statement. | |
| db::Statement * | dstm |
| Precompiled delete statement. | |
| DBALLE_SQL_C_SINT_TYPE | id |
| Context ID SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | id_station |
| Station ID SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | id_report |
| Report ID SQL parameter. | |
| SQL_TIMESTAMP_STRUCT | date |
| Date SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | ltype1 |
| First level type SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | l1 |
| Level L1 SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | ltype2 |
| Second level type SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | l2 |
| Level L2 SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | pind |
| Time range type SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | p1 |
| Time range P1 SQL parameter. | |
| DBALLE_SQL_C_SINT_TYPE | p2 |
| Time range P2 SQL parameter. | |
Precompiled queries to manipulate the context table.
| void dballe::db::Context::get_data | ( | int | id | ) |
Get context information given a context ID.
| id | ID of the context to query |
| int dballe::db::Context::get_id | ( | ) |
Get the context id for the current context data.
| int dballe::db::Context::insert | ( | ) |
Insert a new context in the database.
| int dballe::db::Context::obtain_station_info | ( | ) |
Get the context id for a station info context.
id_station and id_report must be filled in for the query.
1.7.4