libdballe
6.8
|
Precompiled queries to manipulate the context table. More...
#include <context.h>
Public Member Functions | |
Context (v5::DB &db) | |
int | get_id () |
Get the context id for the current context data. More... | |
void | get_data (int id) |
Get context information given a context ID. More... | |
int | obtain_station_info () |
Get the context id for a station info context. More... | |
int | insert () |
Insert a new context in the database. More... | |
void | remove () |
Remove a context record. | |
void | dump (FILE *out) |
Dump the entire contents of the table to an output stream. | |
Data Fields | |
v5::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::v5::Context::get_data | ( | int | id | ) |
Get context information given a context ID.
id | ID of the context to query |
int dballe::db::v5::Context::get_id | ( | ) |
Get the context id for the current context data.
int dballe::db::v5::Context::insert | ( | ) |
Insert a new context in the database.
int dballe::db::v5::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.