1#ifndef DBALLE_FORTRAN_DBAPI_H
2#define DBALLE_FORTRAN_DBAPI_H
5#include <dballe/file.h>
23 void shutdown(
bool commit);
26 std::shared_ptr<db::Transaction> tr;
31 DbAPI(std::shared_ptr<db::Transaction> tr,
unsigned perms);
34 void seti(
const char*
param,
int value)
override;
35 void reinit_db(
const char*
repinfofile=
nullptr)
override;
36 void remove_all()
override;
37 int query_stations()
override;
38 int query_data()
override;
39 void insert_data()
override;
40 void remove_data()
override;
41 void commit()
override;
42 void messages_open_input(
const char* filename,
const char*
mode, Encoding format,
bool simplified=
true)
override;
43 void messages_open_output(
const char* filename,
const char*
mode, Encoding format)
override;
44 bool messages_read_next()
override;
45 void messages_write_next(
const char* template_name=0)
override;
Options controlling how to connect to a database.
Definition db.h:18
Common implementation of the set* and enq* machinery using input and output records.
Definition commonapi.h:153
Operation-specific behaviour for the API.
Definition commonapi.h:45