From 4bd8786e6a53eb555c4686da107af60119964f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 9 Sep 2015 18:59:18 +0200 Subject: [PATCH] Fix #65 Database::getHandle() exposes underlying SQLite handle - needed to mix with other libraries or advance usage --- include/SQLiteCpp/Database.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/SQLiteCpp/Database.h b/include/SQLiteCpp/Database.h index e31f5459..ae152a18 100644 --- a/include/SQLiteCpp/Database.h +++ b/include/SQLiteCpp/Database.h @@ -276,6 +276,12 @@ class Database return sqlite3_errmsg(mpSQLite); } + /// Return raw pointer to SQLite Database Connection Handle (often needed to mix with other libraries or advance usage). + inline sqlite3* getHandle() const noexcept // nothrow + { + return mpSQLite; + } + /** * @brief Create or redefine a SQL function or aggregate in the sqlite database. *