Skip to content

Commit

Permalink
Fix #65 Database::getHandle() exposes underlying SQLite handle
Browse files Browse the repository at this point in the history
 - needed to mix with other libraries or advance usage
  • Loading branch information
SRombauts committed Sep 9, 2015
1 parent f39b84c commit 4bd8786
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/SQLiteCpp/Database.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 4bd8786

Please sign in to comment.