libdballe 9.9
|
Build SQL queries for V7 databases. More...
#include <qbuilder.h>
Public Member Functions | |
QueryBuilder (std::shared_ptr< v7::Transaction > tr, const core::Query &query, unsigned int modifiers, bool query_station_vars) | |
void | build () |
Public Attributes | |
dballe::sql::Connection & | conn |
std::shared_ptr< v7::Transaction > | tr |
Database to operate on. | |
const char * | bind_in_ident = nullptr |
If defined, it need to point to the identifier to be used as the only bound input parameter. | |
bool | select_station = false |
bool | select_varinfo = false |
bool | select_data_id = false |
bool | select_data = false |
bool | select_summary_details = false |
const core::Query & | query |
Query object. | |
dballe::sql::Querybuf | sql_query |
Dynamically generated SQL query. | |
dballe::sql::Querybuf | sql_from |
FROM part of the SQL query. | |
dballe::sql::Querybuf | sql_where |
WHERE part of the SQL query. | |
const unsigned int | modifiers |
Modifier flags to enable special query behaviours. | |
bool | query_station_vars |
True if we are querying station information, rather than measured data. | |
Protected Member Functions | |
bool | add_pa_where (const char *tbl) |
bool | add_dt_where (const char *tbl) |
bool | add_ltr_where (const char *tbl) |
bool | add_varcode_where (const char *tbl) |
bool | add_repinfo_where (const char *tbl) |
bool | add_datafilter_where (const char *tbl) |
virtual void | build_select ()=0 |
virtual bool | build_where ()=0 |
virtual void | build_order_by ()=0 |
Build SQL queries for V7 databases.
If defined, it need to point to the identifier to be used as the only bound input parameter.
If not defined, there are no bound input parameters in this query