20 : base_class(name,svc)
29 return StatusCode::SUCCESS;
35 const std::string connNameStr{connName};
37 int res = sqlite3_open(connNameStr.c_str(), &
m_db);
38 if (
res != SQLITE_OK) {
72 ATH_MSG_ERROR(
"Connection to the SQLite database not open. Returning empty recordset");
79 return itRecordset->second;
81 const std::string nodeStr{
node};
90 ,
const std::string& tag
91 ,
const std::string& tag2node
92 ,
const std::string& connName)
94 ATH_MSG_DEBUG(
"getQuery (" <<
node <<
"," << tag <<
"," << tag2node <<
"," << connName <<
")");
97 return std::unique_ptr<IRDBQuery>();
101 ,
const std::string& parentTag
102 ,
const std::string& parentNode
103 ,
const std::string& )
105 ATH_MSG_DEBUG(
"getChildTag for " << childNode <<
" " << parentTag <<
" " << parentNode);
107 return std::string();
111 ,
const std::string& tag
112 ,
const std::string& )
#define ATH_MSG_WARNING(x)
coral::AttributeList RDBTagDetails
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
std::pair< std::vector< unsigned int >, bool > res
Declaration of SqliteReadSvc class.
Declaration of the SqliteRecordset class.
std::string getChildTag(const std::string &childNode, const std::string &, const std::string &, const std::string &) override
Dummy overrider of the virtual function.
RecordsetPtrMap m_recordsets
bool connect(std::string_view connName) override
Open the SQLite database This method has no effect if the connection has already been opened.
SqliteReadSvc(const std::string &name, ISvcLocator *svc)
Standard Service Constructor.
StatusCode finalize() override
bool shutdown(std::string_view connName) override
Closes the database connection.
IRDBRecordset_ptr getRecordsetPtr(std::string_view node, std::string_view tag, std::string_view tag2node, std::string_view connName) override
Provides access to the Recordset object containing HVS-tagged data.
std::mutex m_sessionMutex
void getTagDetails(RDBTagDetails &tagDetails, const std::string &tag, const std::string &) override
Dummy overrider of the virtual function.
bool disconnect(std::string_view connName) override
Dummy overrider of the virtual function.
std::unique_ptr< IRDBQuery > getQuery(const std::string &node, const std::string &, const std::string &, const std::string &) override
Dummy overrider of the virtual function (for now).
SqliteRecordset implements IRDBRecordset interface.
void getData(sqlite3 *db, const std::string &nodeName)
Constructs SQL query and retrieves data from the DB.