![]() |
ATLAS Offline Software
|
A service to manage a connection to an SQLite DB. More...
#include <SQLiteDBSvc.h>
Public Member Functions | |
| SQLiteDBSvc (const std::string &name, ISvcLocator *svcLoc) | |
| Constructor. | |
| virtual StatusCode | initialize () override |
| Initialize. | |
| virtual SQLite::Statement | createStatement (std::string_view statement, std::source_location call=std::source_location::current()) override |
| Compile a prepared statement attached to this database. | |
Private Attributes | |
| std::unique_ptr< sqlite3, int(*)(sqlite3 *)> m_db | ATLAS_THREAD_SAFE |
| Gaudi::Property< std::string > | m_databasePath |
A service to manage a connection to an SQLite DB.
Definition at line 21 of file SQLiteDBSvc.h.
|
inline |
Constructor.
Definition at line 24 of file SQLiteDBSvc.h.
|
overridevirtual |
Compile a prepared statement attached to this database.
The service will manage the statement object and delete it in finalize. Statements are protected by a mutex and may be used from multiple threads. It's reasonable to construct all the prepared statements you might need in a service or algorithm initialize.
| [in] | statement | SQL statement to be compiled |
Definition at line 22 of file SQLiteDBSvc.cxx.
|
overridevirtual |
Initialize.
Definition at line 7 of file SQLiteDBSvc.cxx.
|
private |
Definition at line 41 of file SQLiteDBSvc.h.
|
private |
Definition at line 42 of file SQLiteDBSvc.h.