Public Member Functions | Private Attributes | List of all members
art::DatabaseConnection Class Reference

#include <DatabaseConnection.h>

Public Member Functions

 DatabaseConnection (fhicl::ParameterSet const &)
 
template<typename DatabaseOpenPolicy = cet::sqlite::detail::DefaultDatabaseOpenPolicy, typename... PolicyArgs>
cet::sqlite::Connectionget (std::string const &filename, PolicyArgs &&...policyArgs)
 

Private Attributes

cet::sqlite::ConnectionFactory factory_
 

Detailed Description

Definition at line 18 of file DatabaseConnection.h.

Constructor & Destructor Documentation

art::DatabaseConnection::DatabaseConnection ( fhicl::ParameterSet const &  )
inlineexplicit

Definition at line 20 of file DatabaseConnection.h.

20 {}

Member Function Documentation

template<typename DatabaseOpenPolicy = cet::sqlite::detail::DefaultDatabaseOpenPolicy, typename... PolicyArgs>
cet::sqlite::Connection* art::DatabaseConnection::get ( std::string const &  filename,
PolicyArgs &&...  policyArgs 
)
inline

Definition at line 25 of file DatabaseConnection.h.

26  {
27  return factory_.make_connection<DatabaseOpenPolicy>(
28  filename, std::forward<PolicyArgs>(policyArgs)...);
29  }
auto make_connection(std::string const &file_name, PolicyArgs &&...) -> Connection *
cet::sqlite::ConnectionFactory factory_
string filename
Definition: train.py:213

Member Data Documentation

cet::sqlite::ConnectionFactory art::DatabaseConnection::factory_
private

Definition at line 32 of file DatabaseConnection.h.


The documentation for this class was generated from the following file: