1#ifndef DBALLE_DB_V7_MYSQL_STATION_H
2#define DBALLE_DB_V7_MYSQL_STATION_H
4#include <dballe/db/v7/station.h>
28 void _dump(std::function<
void(
int,
int,
const Coords& coords,
const char* ident)> out)
override;
Smart pointer for trace::Step objects, which calls done() when going out of scope.
Definition: db/v7/fwd.h:46
Precompiled queries to manipulate the station table.
Definition: mysql/station.h:21
int maybe_get_id(Tracer<> &trc, const dballe::DBStation &st) override
Get the station ID given latitude, longitude and mobile identifier.
void add_station_vars(Tracer<> &trc, int id_station, DBValues &values) override
Add all station variables (without attributes) to values.
int insert_new(Tracer<> &trc, const dballe::DBStation &desc) override
Insert a new station in the database, without checking if it already exists.
void get_station_vars(Tracer<> &trc, int id_station, std::function< void(std::unique_ptr< wreport::Var >)> dest) override
Export station variables.
DBStation lookup(Tracer<> &trc, int id_station) override
Lookup station data by ID.
dballe::sql::MySQLConnection & conn
DB connection.
Definition: mysql/station.h:26
Database connection.
Definition: mysql.h:127
Coordinates.
Definition: types.h:369
Collection of DBValue objects, indexed by wreport::Varcode.
Definition: values.h:192
Definition: qbuilder.h:82
Definition: transaction.h:16