#include <ConnectionFactory.h>
Definition at line 43 of file ConnectionFactory.h.
template<typename DatabaseOpenPolicy = detail::DefaultDatabaseOpenPolicy, typename... PolicyArgs>
auto cet::sqlite::ConnectionFactory::make_connection |
( |
std::string const & |
file_name, |
|
|
PolicyArgs && |
... |
|
) |
| -> Connection * |
template<typename DatabaseOpenPolicy , typename... PolicyArgs>
auto cet::sqlite::ConnectionFactory::make_connection |
( |
std::string const & |
filename, |
|
|
PolicyArgs &&... |
policyArgs |
|
) |
| -> Connection*
|
Definition at line 57 of file ConnectionFactory.h.
61 std::lock_guard sentry{
mutex_};
65 if (!shared_ptr_to_mutex) {
68 std::make_shared<std::recursive_mutex>();
70 auto ret =
new Connection{
73 DatabaseOpenPolicy{std::forward<PolicyArgs>(policyArgs)...}};
std::map< std::string, std::weak_ptr< std::recursive_mutex > > databaseLocks_
std::recursive_mutex mutex_
std::map<std::string, std::weak_ptr<std::recursive_mutex> > cet::sqlite::ConnectionFactory::databaseLocks_ |
|
private |
std::recursive_mutex cet::sqlite::ConnectionFactory::mutex_ |
|
private |
The documentation for this class was generated from the following file: