diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | doc/manual.xhtml | 8 |
2 files changed, 10 insertions, 1 deletions
@@ -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& name, int flags = SQLITE_OPEN_READWRITE, bool foreign_keys = true, + const std::string& vfs = "", std::[auto|unique]_ptr<connection_factory> = 0); database (int& argc, @@ -13989,6 +13990,7 @@ namespace odb bool erase = false, int flags = SQLITE_OPEN_READWRITE, bool foreign_keys = true, + const std::string& vfs = "", std::[auto|unique]_ptr<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> |