aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-01-17 10:55:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-01-17 10:55:13 +0200
commitca50e5847f273e7834d94a8f3a6f847ae2a440f4 (patch)
tree8bf0454f3049667a7b87a36f538e4c1aee9d9426
parent137663953feb2362c973d7528cf103cadd50d845 (diff)
Add database id constant (useful for meta-programming)
-rw-r--r--odb/sqlite/database.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/sqlite/database.hxx b/odb/sqlite/database.hxx
index e7650f7..a626b73 100644
--- a/odb/sqlite/database.hxx
+++ b/odb/sqlite/database.hxx
@@ -350,6 +350,11 @@ namespace odb
using odb::database::tracer;
public:
+ // Database id constant (useful for meta-programming).
+ //
+ static const odb::database_id database_id = id_sqlite;
+
+ public:
virtual
~database ();