22 #ifndef DBALLE_DB_MYSQL_STATION_H 23 #define DBALLE_DB_MYSQL_STATION_H 41 struct MySQLConnection;
57 bool maybe_get_id(
int lat,
int lon,
const char* ident,
int*
id);
60 void read_station_vars(
const std::string& query, std::function<
void(std::unique_ptr<wreport::Var>)> dest);
77 int get_id(
int lat,
int lon,
const char* ident=
nullptr)
override;
87 int obtain_id(
int lat,
int lon,
const char* ident=
nullptr,
bool* inserted=NULL)
override;
89 void get_station_vars(
int id_station,
int id_report, std::function<
void(std::unique_ptr<wreport::Var>)> dest)
override;
90 void add_station_vars(
int id_station,
Record& rec)
override;
95 void dump(FILE* out)
override;
Database connection.
Definition: mysql/internals.h:145
Key/value store where keys are strings and values are wreport variables.
Definition: record.h:16
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Definition: db/mysql/station.h:98
Station table management used by the db module.
MySQLConnection & conn
DB connection.
Definition: db/mysql/station.h:54
Definition: db/sql/station.h:46
Definition: conversion.h:6
Precompiled queries to manipulate the station table.
Definition: db/mysql/station.h:48