|
ATLAS Offline Software
|
Go to the documentation of this file.
29 return StatusCode::SUCCESS;
36 int res = sqlite3_open(connName.c_str(), &
m_db);
37 if (
res != SQLITE_OK) {
65 ,
const std::string& )
71 ATH_MSG_ERROR(
"Connection to the SQLite database not open. Returning empty recordset");
78 return itRecordset->second;
89 ,
const std::string&
tag
90 ,
const std::string& tag2node
91 ,
const std::string& connName)
96 return std::unique_ptr<IRDBQuery>();
100 ,
const std::string& parentTag
101 ,
const std::string& parentNode
102 ,
const std::string& )
104 ATH_MSG_DEBUG(
"getChildTag for " << childNode <<
" " << parentTag <<
" " << parentNode);
106 return std::string();
110 ,
const std::string&
tag
111 ,
const std::string& )
std::string getChildTag(const std::string &childNode, const std::string &, const std::string &, const std::string &) override
Dummy overrider of the virtual function.
Declaration of the SqliteRecordset class.
void getTagDetails(RDBTagDetails &tagDetails, const std::string &tag, const std::string &) override
Dummy overrider of the virtual function.
Declaration of SqliteReadSvc class.
void getData(sqlite3 *db, const std::string &nodeName)
Constructs SQL query and retrieves data from the DB.
IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &, const std::string &, const std::string &) override
Provides access to the Recordset object containing HVS-tagged data.
SqliteReadSvc(const std::string &name, ISvcLocator *svc)
Standard Service Constructor.
bool disconnect(const std::string &) override
Dummy overrider of the virtual function.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::pair< std::vector< unsigned int >, bool > res
AthROOTErrorHandlerSvc * svc
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
std::mutex m_recordsetMutex
RecordsetPtrMap m_recordsets
bool connect(const std::string &connName) override
Open the SQLite database This method has no effect if the connection has already been opened.
coral::AttributeList RDBTagDetails
#define ATH_MSG_WARNING(x)
SqliteRecordset implements IRDBRecordset interface. It is a container of records read from an SQLite ...
bool shutdown(const std::string &) override
Closes the database connection.
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)
StatusCode finalize() override
std::mutex m_sessionMutex