diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-28 16:07:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-28 16:07:38 +0200 |
commit | b9764c3eb6626fb96deb0901b9ee63c2246ff52e (patch) | |
tree | af583f5fcfa512638f47c153cc54d827936766a1 /odb/sqlite/connection.hxx | |
parent | 7392db256c1587ff8fe87d95c5ae5c10f854f79e (diff) |
Add support for creating connection from existing handle
This will allow for custom connection establishment and configuration.
Diffstat (limited to 'odb/sqlite/connection.hxx')
-rw-r--r-- | odb/sqlite/connection.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/sqlite/connection.hxx b/odb/sqlite/connection.hxx index e069ce9..e487e6b 100644 --- a/odb/sqlite/connection.hxx +++ b/odb/sqlite/connection.hxx @@ -43,6 +43,7 @@ namespace odb ~connection (); connection (database_type&, int extra_flags = 0); + connection (database_type&, sqlite3* handle); database_type& database () @@ -96,6 +97,10 @@ namespace odb connection& operator= (const connection&); private: + void + init (); + + private: database_type& db_; sqlite3* handle_; |