|
ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
|
Public Member Functions | |
| virtual bool | open_connection ()=0 |
| Opens the database connection. Returns true if succeeded. More... | |
| virtual bool | close_connection ()=0 |
| Closes the database connection. Returns true if succeeded. More... | |
| virtual std::unique_ptr< DatabaseTransactionInterface > | begin_transaction ()=0 |
| Start a transaction on the database. Returns an object holding the transaction. More... | |
| virtual bool | execute_statement (const std::string &statement)=0 |
Immediately executes statement. Returns true if succeeded. More... | |
| virtual std::unique_ptr< SQLiteStatementInterface > | new_statement (const std::string &sql)=0 |
| Returns a new SQLiteStatementInterface to be used to perform more advanced sql statements. More... | |
| virtual const char * | get_error_message ()=0 |
| Returns the latest error message from sqlite3. More... | |
| virtual bool | clear_table (const std::string &table)=0 |
Clears the table with name table. Returns true if succeeded. More... | |
| virtual int64_t | get_last_inserted_rowid ()=0 |
| Gets the last inserted rowid. More... | |
| virtual void | set_user_version (uint32_t version)=0 |
Helper function to set the user version of the database to version. More... | |
| virtual uint32_t | get_user_version ()=0 |
| Helper function to get the user version of the database. More... | |
|
pure virtual |
Start a transaction on the database. Returns an object holding the transaction.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Clears the table with name table. Returns true if succeeded.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Closes the database connection. Returns true if succeeded.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Immediately executes statement. Returns true if succeeded.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Returns the latest error message from sqlite3.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Gets the last inserted rowid.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Helper function to get the user version of the database.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Returns a new SQLiteStatementInterface to be used to perform more advanced sql statements.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Opens the database connection. Returns true if succeeded.
Implemented in ocpp::common::DatabaseConnection.
|
pure virtual |
Helper function to set the user version of the database to version.
Implemented in ocpp::common::DatabaseConnection.