libdballe 9.6
|
Options controlling how messages are imported in the database. More...
#include <db.h>
Static Public Member Functions | |
static std::unique_ptr< DBImportOptions > | create () |
Public Attributes | |
std::string | report |
Report name to use to import data. | |
bool | import_attributes = false |
Import variable attributes. | |
bool | update_station = false |
Update station information. | |
bool | overwrite = false |
Replace existing data. | |
std::vector< wreport::Varcode > | varlist |
If not empty, import only the given data values. | |
Static Public Attributes | |
static const DBImportOptions | defaults |
Protected Member Functions | |
DBImportOptions (const DBImportOptions &)=default | |
DBImportOptions (DBImportOptions &&)=default | |
DBImportOptions & | operator= (const DBImportOptions &)=default |
DBImportOptions & | operator= (DBImportOptions &&)=default |
Friends | |
class | DB |
class | Transaction |
Options controlling how messages are imported in the database.
To allow to add members this structure without breaking the ABI, creation of new instances is restricted to DBImportOptions::create().
bool dballe::DBImportOptions::overwrite = false |
Replace existing data.
If set to true, causes existing information already in the database to be overwritten. If false (default), trying to import a message which contains data already present in the database causes the import to fail.
std::string dballe::DBImportOptions::report |
Report name to use to import data.
If left empty (default), then it will be chosen automatically based on the message type.
bool dballe::DBImportOptions::update_station = false |
Update station information.
If set to true, station information is merged with existing data in the database. If false (default), station information is imported only when the station did not exist in the database.