14 #ifndef DATABASERETRIEVALALG_H
15 #define DATABASERETRIEVALALG_H
20 namespace fhicl {
class ParameterSet; }
37 const std::string& url2=
"",
const std::string& tag=
"",
38 bool usesqlite=
false,
bool testmode=
false) :
std::unique_ptr< DBFolder > fFolder
virtual void Reconfigure(fhicl::ParameterSet const &p)
Configure using fhicl::ParameterSet.
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
const IOVTimeStamp & Begin() const
Get Timestamp information.
const std::string & FolderName() const