aboutsummaryrefslogtreecommitdiff
path: root/bdep/database-views.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-09 15:06:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-09 15:06:27 +0200
commitd304762e4338b4a055e2be018205a00c2ca9ee2f (patch)
tree252a4aa70118135e589095442fb4df3879c96eb0 /bdep/database-views.hxx
parentdf5e58e6e5eb2727a185bf9a98a462c18fa3a83d (diff)
Support for resolving and adding configurations
Diffstat (limited to 'bdep/database-views.hxx')
-rw-r--r--bdep/database-views.hxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/bdep/database-views.hxx b/bdep/database-views.hxx
new file mode 100644
index 0000000..286f7ca
--- /dev/null
+++ b/bdep/database-views.hxx
@@ -0,0 +1,28 @@
+// file : bdep/database-views.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BDEP_DATABASE_VIEWS_HXX
+#define BDEP_DATABASE_VIEWS_HXX
+
+#include <odb/core.hxx>
+
+#include <bdep/types.hxx>
+#include <bdep/utility.hxx>
+
+namespace bdep
+{
+ #pragma db view table("sqlite_master")
+ struct sqlite_master
+ {
+ string type;
+ string name;
+ string sql;
+
+ #pragma db member(type) column("type")
+ #pragma db member(name) column("type")
+ #pragma db member(sql) column("sql")
+ };
+}
+
+#endif // BDEP_DATABASE_VIEWS_HXX