1 #ifndef art_Framework_Services_System_DatabaseConnection_h 2 #define art_Framework_Services_System_DatabaseConnection_h 11 #include "cetlib/sqlite/ConnectionFactory.h" 12 #include "cetlib/sqlite/detail/DefaultDatabaseOpenPolicy.h" 23 template <
typename DatabaseOpenPolicy =
24 cet::sqlite::detail::DefaultDatabaseOpenPolicy,
25 typename... PolicyArgs>
26 cet::sqlite::Connection
27 get(std::string
const& filename, PolicyArgs&&... policyArgs)
29 return factory_.make<DatabaseOpenPolicy>(
30 filename, std::forward<PolicyArgs>(policyArgs)...);
#define DECLARE_ART_SERVICE(svc, scope)
DatabaseConnection(fhicl::ParameterSet const &)
cet::sqlite::ConnectionFactory factory_