1 #ifndef art_Framework_Services_System_DatabaseConnection_h 2 #define art_Framework_Services_System_DatabaseConnection_h 6 #include "cetlib/sqlite/Connection.h" 7 #include "cetlib/sqlite/ConnectionFactory.h" 8 #include "cetlib/sqlite/detail/DefaultDatabaseOpenPolicy.h" 20 template <
typename DatabaseOpenPolicy =
21 cet::sqlite::detail::DefaultDatabaseOpenPolicy,
22 typename... PolicyArgs>
23 std::unique_ptr<cet::sqlite::Connection>
24 get(std::string
const& filename, PolicyArgs&&... policyArgs)
26 return factory_.make_connection<DatabaseOpenPolicy>(
27 filename, std::forward<PolicyArgs>(policyArgs)...);
DatabaseConnection(fhicl::ParameterSet const &)
cet::sqlite::ConnectionFactory factory_
#define DECLARE_ART_SERVICE(svc, scope)