aboutsummaryrefslogtreecommitdiff
path: root/bpkg/database
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-14 13:46:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-14 13:46:09 +0200
commitf9b9844eabe29250298f8120fa32a3b98c718454 (patch)
treedd97e56a4f8aaf26fa8fa3ac3c7755ab849d5bf5 /bpkg/database
parent9f34890ff201588e829174f5e19634ddcd159206 (diff)
Create empty database in cfg-create
Diffstat (limited to 'bpkg/database')
-rw-r--r--bpkg/database21
1 files changed, 21 insertions, 0 deletions
diff --git a/bpkg/database b/bpkg/database
new file mode 100644
index 0000000..820555d
--- /dev/null
+++ b/bpkg/database
@@ -0,0 +1,21 @@
+// file : bpkg/database -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BPKG_DATABASE
+#define BPKG_DATABASE
+
+#include <odb/sqlite/database.hxx>
+
+#include <bpkg/types>
+
+namespace bpkg
+{
+ using odb::sqlite::database;
+ using odb::sqlite::transaction;
+
+ database
+ open (const dir_path& configuration, bool create = false);
+}
+
+#endif // BPKG_DATABASE