aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/database.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite/database.hxx')
-rw-r--r--odb/sqlite/database.hxx10
1 files changed, 9 insertions, 1 deletions
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<connection_factory> =
details::transfer_ptr<connection_factory> ());
@@ -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<connection_factory> =
details::transfer_ptr<connection_factory> ());
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<connection_factory> factory_;
};
}