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

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/Services/System/DatabaseConnection.h"

Public Member Functions

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

Private Attributes

cet::sqlite::ConnectionFactory factory_
 

Detailed Description

Definition at line 19 of file DatabaseConnection.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file DatabaseConnection.h.

21 {}

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 27 of file DatabaseConnection.h.

References shutoffs::filename.

28  {
29  return factory_.make<DatabaseOpenPolicy>(
30  filename, std::forward<PolicyArgs>(policyArgs)...);
31  }
string filename
Definition: shutoffs.py:106
cet::sqlite::ConnectionFactory factory_
auto make(std::string const &file_name, PolicyArgs &&...) -> Connection

Member Data Documentation

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

Definition at line 34 of file DatabaseConnection.h.


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