From 95143f4028efb896348008dc4cf4ce2d5925f720 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 6 Sep 2012 14:36:20 +0200 Subject: Add ability to specify SQLite vfs module in database constructor --- odb/sqlite/database.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'odb/sqlite/database.hxx') diff --git a/odb/sqlite/database.hxx b/odb/sqlite/database.hxx index 021a5df..042fb29 100644 --- a/odb/sqlite/database.hxx +++ b/odb/sqlite/database.hxx @@ -38,6 +38,7 @@ namespace odb database (const std::string& name, int flags = SQLITE_OPEN_READWRITE, bool foreign_keys = true, + const std::string& vfs = "", details::transfer_ptr = details::transfer_ptr ()); @@ -60,13 +61,13 @@ namespace odb bool erase = false, int flags = SQLITE_OPEN_READWRITE, bool foreign_keys = true, + const std::string& vfs = "", details::transfer_ptr = details::transfer_ptr ()); static void print_usage (std::ostream&); - public: const std::string& name () const @@ -86,6 +87,12 @@ namespace odb return foreign_keys_; } + const std::string& + vfs () const + { + return vfs_; + } + // Transactions. // public: @@ -133,6 +140,7 @@ namespace odb std::string name_; int flags_; bool foreign_keys_; + std::string vfs_; details::unique_ptr factory_; }; } -- cgit v1.1