aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-06 14:36:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-06 14:36:20 +0200
commit62106fba0abbb890833778036406cac345d5ca20 (patch)
tree0e74efcd6ed1a4ffe6cace907394fd7a55fae2db
parent6d0c7119137749ca31b3d66406c6a270fbbb5fc2 (diff)
Add ability to specify SQLite vfs module in database constructor
-rw-r--r--NEWS3
-rw-r--r--doc/manual.xhtml8
2 files changed, 10 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 52f7b00..5dc913d 100644
--- a/NEWS
+++ b/NEWS
@@ -53,6 +53,9 @@ Version 2.1.0
more information, refer to Section 20.1, "Basic Types" in the ODB manual
as well as the 'qt' example in the odb-examples package.
+ * SQLite improvements: Ability to specify the virtual filesystem (vfs) module
+ in the database constructor (Section 14.2, "SQLite Database Class").
+
* The id() pragma that was used to declare a persistent class without an
object id has been renamed to no_id.
diff --git a/doc/manual.xhtml b/doc/manual.xhtml
index adcc45a..26d9d38 100644
--- a/doc/manual.xhtml
+++ b/doc/manual.xhtml
@@ -13982,6 +13982,7 @@ namespace odb
database (const std::string&amp; name,
int flags = SQLITE_OPEN_READWRITE,
bool foreign_keys = true,
+ const std::string&amp; vfs = "",
std::[auto|unique]_ptr&lt;connection_factory> = 0);
database (int&amp; argc,
@@ -13989,6 +13990,7 @@ namespace odb
bool erase = false,
int flags = SQLITE_OPEN_READWRITE,
bool foreign_keys = true,
+ const std::string&amp; vfs = "",
std::[auto|unique]_ptr&lt;connection_factory> = 0);
static void
@@ -14031,7 +14033,11 @@ namespace odb
argument specifies whether foreign key constraints checking
should be enabled. See <a href="#14.5.3">Section 14.5.3,
"Foreign Key Constraints"</a> for more information on foreign
- keys.</p>
+ keys. The <code>vfs</code> argument specifies the SQLite
+ virtual file system module that should be used to access the
+ database. If this argument is empty, then the default vfs module
+ is used. Again, refer to the <code>sqlite3_open_v2()</code> function
+ documentation for detail.</p>
<p>The following example shows how we can open the <code>test.db</code>
database in the read-write mode and create it if it does not exist:</p>