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
commit1c15805b50657dc511428643d0822f359e79538c (patch)
treedc1f89161c7a9f6165ca0c665753af3e39590398
parent595200e87a6299e3436da75fdee0d5b5f70dcb9f (diff)
Add database id constant (useful for meta-programming)
-rw-r--r--odb/mysql/database.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/mysql/database.hxx b/odb/mysql/database.hxx
index 537a0e3..b362727 100644
--- a/odb/mysql/database.hxx
+++ b/odb/mysql/database.hxx
@@ -409,6 +409,11 @@ namespace odb
using odb::database::tracer;
public:
+ // Database id constant (useful for meta-programming).
+ //
+ static const odb::database_id database_id = id_mysql;
+
+ public:
virtual
~database ();