6#ifndef SQLITEDBSVC_SQLITEDBSVC_H
7#define SQLITEDBSVC_SQLITEDBSVC_H
25 : extends(name, svcLoc), m_db(nullptr, sqlite3_close_v2) {}
36 std::string_view statement,
37 std::source_location call = std::source_location::current())
override;
43 this,
"DatabasePath",
":memory:",
44 "Path to SQLite Database. The default (:memory:) creates a temporary "
45 "in-memory database. Options may be set using SQLite URI filenames."};
std::unique_ptr< sqlite3, int(*)(sqlite3 *)> m_db ATLAS_THREAD_SAFE
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.
Gaudi::Property< std::string > m_databasePath
virtual StatusCode initialize() override
Initialize.
SQLiteDBSvc(const std::string &name, ISvcLocator *svcLoc)
Constructor.
SQLite prepared statement.