14 #ifndef DATABASERETRIEVALALG_H 15 #define DATABASERETRIEVALALG_H 20 namespace fhicl {
class ParameterSet; }
38 bool usesqlite=
false,
bool testmode=
false) :
39 fFolder(new
DBFolder(foldername, url, url2,
tag, usesqlite, testmode)) {}
53 return fFolder->UpdateData(ts);
std::unique_ptr< DBFolder > fFolder
DatabaseRetrievalAlg(fhicl::ParameterSet const &p)
std::uint64_t DBTimeStamp_t
const std::string & URL() const
Get connection information.
DatabaseRetrievalAlg(const std::string &foldername, const std::string &url, const std::string &url2="", const std::string &tag="", bool usesqlite=false, bool testmode=false)
Constructors.
bool UpdateFolder(DBTimeStamp_t ts)
Return true if fFolder is successfully updated.
const IOVTimeStamp & End() const
virtual ~DatabaseRetrievalAlg()
Default destructor.
const std::string & Tag() const
Filters for channels, events, etc.
const IOVTimeStamp & Begin() const
Get Timestamp information.
const std::string & FolderName() const