#include <Connection.h>
|
template<typename DatabaseOpenPolicy > |
| Connection (std::string const &filename, std::shared_ptr< std::recursive_mutex >, DatabaseOpenPolicy) |
|
|
sqlite3 * | db_ {nullptr} |
|
std::shared_ptr< std::recursive_mutex > | mutex_ {nullptr} |
|
Definition at line 31 of file Connection.h.
Connection::~Connection |
( |
| ) |
|
|
noexcept |
cet::sqlite::Connection::Connection |
( |
| ) |
|
|
explicitdefault |
cet::sqlite::Connection::Connection |
( |
Connection const & |
| ) |
|
|
delete |
cet::sqlite::Connection::Connection |
( |
Connection && |
| ) |
|
|
delete |
template<typename DatabaseOpenPolicy >
cet::sqlite::Connection::Connection |
( |
std::string const & |
filename, |
|
|
std::shared_ptr< std::recursive_mutex > |
spmutex, |
|
|
DatabaseOpenPolicy |
policy |
|
) |
| |
|
explicitprivate |
Definition at line 70 of file Connection.h.
std::shared_ptr< std::recursive_mutex > mutex_
template<std::size_t NColumns, typename Row >
Definition at line 82 of file Connection.h.
86 std::lock_guard sentry{*
mutex_};
87 sqlite::Transaction txn{
db_};
88 for (
auto const&
r : buffer) {
90 int const rc{sqlite3_step(insertStmt)};
91 if (
rc != SQLITE_DONE) {
94 sqlite3_reset(insertStmt);
std::shared_ptr< std::recursive_mutex > mutex_
static void bind(sqlite3_stmt *s, TUP const &t)
sqlite3* cet::sqlite::Connection::get |
( |
| ) |
const |
|
inline |
cet::sqlite::Connection::operator sqlite3 * |
( |
| ) |
|
|
inline |
sqlite3* cet::sqlite::Connection::db_ {nullptr} |
|
private |
std::shared_ptr<std::recursive_mutex> cet::sqlite::Connection::mutex_ {nullptr} |
|
private |
The documentation for this class was generated from the following files: