libdballe 9.6
|
Public Member Functions | |
virtual void | commit ()=0 |
Commit this transaction. | |
virtual void | rollback ()=0 |
Roll back this transaction. | |
virtual void | rollback_nothrow () noexcept=0 |
Roll back this transaction. | |
virtual std::shared_ptr< CursorStation > | query_stations (const Query &query)=0 |
Start a query on the station variables archive. | |
virtual std::shared_ptr< CursorStationData > | query_station_data (const Query &query)=0 |
Query the station variables in the database. | |
virtual std::shared_ptr< CursorData > | query_data (const Query &query)=0 |
Query the database. | |
virtual std::shared_ptr< CursorSummary > | query_summary (const Query &query)=0 |
Query a summary of what the result would be for a query. | |
virtual std::shared_ptr< CursorMessage > | query_messages (const Query &query)=0 |
Query the database returning the matching data as Message objects. | |
virtual void | remove_all ()=0 |
Remove all data from the database. | |
virtual void | remove_station_data (const Query &query)=0 |
Remove data from the database. | |
virtual void | remove_data (const Query &query)=0 |
Remove data from the database. | |
virtual void | import_message (const Message &message, const DBImportOptions &opts=DBImportOptions::defaults)=0 |
Import a Message into the DB-All.e database. | |
virtual void | import_messages (const std::vector< std::shared_ptr< Message > > &messages, const DBImportOptions &opts=DBImportOptions::defaults) |
Import Messages into the DB-All.e database. | |
virtual void | insert_station_data (Data &data, const DBInsertOptions &opts=DBInsertOptions::defaults)=0 |
Insert station values into the database. | |
virtual void | insert_data (Data &data, const DBInsertOptions &opts=DBInsertOptions::defaults)=0 |
Insert data values into the database. | |
|
pure virtual |
Commit this transaction.
Implemented in dballe::db::v7::Transaction, and dballe::db::v7::TestTransaction.
|
pure virtual |
Import a Message into the DB-All.e database.
message | The Message to import |
opts | Options controlling the import process |
Implemented in dballe::db::v7::Transaction.
|
virtual |
Import Messages into the DB-All.e database.
messages | The messages to import |
opts | Options controlling the import process |
Reimplemented in dballe::db::v7::Transaction.
|
pure virtual |
Insert data values into the database.
The IDs of the station and all variables that were inserted will be stored in vals.
data | The values to insert. |
opts | Options controlling the insert operation |
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Insert station values into the database.
The IDs of the station and all variables that were inserted will be stored in vals.
data | The values to insert. |
opts | Options controlling the insert operation |
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Query the database.
When multiple values per variable are present, the results will be presented in increasing order of priority.
query | The Query selecting the data to return |
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Query the database returning the matching data as Message objects.
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Query the station variables in the database.
When multiple values per variable are present, the results will be presented in increasing order of priority.
query | The Query selecting the station data to return |
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Start a query on the station variables archive.
The cursor will iterate over unique lat, lon, ident triples, and will contain all station vars. If a station var exists twice on two different networks, only one will be present: the one of the network with the highest priority.
query | The Query selecting the stations to return |
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Query a summary of what the result would be for a query.
query | The Query selecting the data to summarise |
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Remove all data from the database.
This is faster than remove() with an empty record, and unlike reset() it preserves existing report information.
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Remove data from the database.
query | The query selecting the data to remove |
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Remove data from the database.
query | The query selecting the data to remove |
Implemented in dballe::db::v7::Transaction.
|
pure virtual |
Roll back this transaction.
Implemented in dballe::db::v7::Transaction.
|
pure virtualnoexcept |
Roll back this transaction.
Implemented in dballe::db::v7::Transaction.