LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::DatabaseConnection Class Reference

#include "DatabaseConnection.h"

Public Member Functions

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

Private Attributes

cet::sqlite::ConnectionFactory factory_
 

Detailed Description

Definition at line 17 of file DatabaseConnection.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file DatabaseConnection.h.

19 {}

Member Function Documentation

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

Definition at line 24 of file DatabaseConnection.h.

References factory_.

25  {
26  return factory_.make_connection<DatabaseOpenPolicy>(
27  filename, std::forward<PolicyArgs>(policyArgs)...);
28  }
cet::sqlite::ConnectionFactory factory_

Member Data Documentation

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

Definition at line 31 of file DatabaseConnection.h.

Referenced by get().


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