aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/database.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-07 13:58:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-07 13:58:47 +0200
commita15eb05821b1ae5b40b24bfa3efa0c70a095b3e9 (patch)
treef8881fea63008cb48c068851f39cf84375593826 /odb/sqlite/database.hxx
parent95143f4028efb896348008dc4cf4ce2d5925f720 (diff)
Add support for passing database name as std::wstring on Windows
Diffstat (limited to 'odb/sqlite/database.hxx')
-rw-r--r--odb/sqlite/database.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/sqlite/database.hxx b/odb/sqlite/database.hxx
index 042fb29..bbb01f6 100644
--- a/odb/sqlite/database.hxx
+++ b/odb/sqlite/database.hxx
@@ -42,6 +42,15 @@ namespace odb
details::transfer_ptr<connection_factory> =
details::transfer_ptr<connection_factory> ());
+#ifdef _WIN32
+ database (const std::wstring& name,
+ int flags = SQLITE_OPEN_READWRITE,
+ bool foreign_keys = true,
+ const std::string& vfs = "",
+ details::transfer_ptr<connection_factory> =
+ details::transfer_ptr<connection_factory> ());
+#endif
+
// Extract the database parameters from the command line. The
// following options are recognized:
//