22 #ifndef DBALLE_DB_SQLITE_STATION_H 23 #define DBALLE_DB_SQLITE_STATION_H 41 struct SQLiteConnection;
42 struct SQLiteStatement;
65 bool maybe_get_id(
int lat,
int lon,
const char* ident,
int*
id);
68 void read_station_vars(
SQLiteStatement& stm, std::function<
void(std::unique_ptr<wreport::Var>)> dest);
85 int get_id(
int lat,
int lon,
const char* ident=
nullptr)
override;
95 int obtain_id(
int lat,
int lon,
const char* ident=
nullptr,
bool* inserted=NULL)
override;
97 void get_station_vars(
int id_station,
int id_report, std::function<
void(std::unique_ptr<wreport::Var>)> dest)
override;
98 void add_station_vars(
int id_station,
Record& rec)
override;
103 void dump(FILE* out)
override;
Definition: db/sqlite/station.h:106
SQLite statement.
Definition: sqlite/internals.h:124
Key/value store where keys are strings and values are wreport variables.
Definition: record.h:16
Database connection.
Definition: sqlite/internals.h:56
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Precompiled queries to manipulate the station table.
Definition: db/sqlite/station.h:49
Station table management used by the db module.
Definition: db/sql/station.h:46
Definition: conversion.h:6
SQLiteConnection & conn
DB connection.
Definition: db/sqlite/station.h:55