libdballe 9.6
Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
dballe::DBInsertOptions Class Reference

Options controlling how values are inserted in the database. More...

#include <db.h>

Inheritance diagram for dballe::DBInsertOptions:
dballe::impl::DBInsertOptions

Static Public Member Functions

static std::unique_ptr< DBInsertOptionscreate ()
 

Public Attributes

bool can_replace = false
 If true, then existing data can be rewritten, else data can only be added.
 
bool can_add_stations = true
 If false, it will not create a missing station record, and only data for existing stations can be added.
 

Static Public Attributes

static const DBInsertOptions defaults
 

Protected Member Functions

 DBInsertOptions (const DBInsertOptions &)=default
 
 DBInsertOptions (DBInsertOptions &&)=default
 
DBInsertOptionsoperator= (const DBInsertOptions &)=default
 
DBInsertOptionsoperator= (DBInsertOptions &&)=default
 

Detailed Description

Options controlling how values are inserted in the database.

To allow to add members this structure without breaking the ABI, creation of new instances is restricted to DBInsertOptions::create().

Member Data Documentation

◆ can_add_stations

bool dballe::DBInsertOptions::can_add_stations = true

If false, it will not create a missing station record, and only data for existing stations can be added.

If true, then if we are inserting data for a station that does not yet exists in the database, it will be created.


The documentation for this class was generated from the following file: