Database connection.
Definition: postgresql.h:240
dballe::sql::PostgreSQLConnection & conn
DB connection.
Definition: v7/postgresql/station.h:26
Precompiled queries to manipulate the station table.
Definition: v7/postgresql/station.h:20
void get_station_vars(int id_station, std::function< void(std::unique_ptr< wreport::Var >)> dest) override
Export station variables.
stations_t::iterator obtain_id(State &st, const StationDesc &desc) override
Get the station ID given latitude, longitude and mobile identifier.
stations_t::iterator lookup_id(State &st, int id) override
Look up a station give its ID.
void add_station_vars(int id_station, Record &rec) override
Add all station variables (without attributes) to rec.
bool maybe_get_id(const StationDesc &st, int *id) override
Lookup the ID of a station, returning true if it was found, false if not.