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
commitd9984b4dd6e81ac2bb3315f41c686c06ce33e2f8 (patch)
treed5ad7c481c818bb3b323ebba3890fd2376cf97e5
parent61629555cc80d18cf500b5bd38b444f7fd124b99 (diff)
Add database id constant (useful for meta-programming)
-rw-r--r--odb/mssql/database.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/mssql/database.hxx b/odb/mssql/database.hxx
index a133634..d177228 100644
--- a/odb/mssql/database.hxx
+++ b/odb/mssql/database.hxx
@@ -461,6 +461,11 @@ namespace odb
using odb::database::tracer;
public:
+ // Database id constant (useful for meta-programming).
+ //
+ static const odb::database_id database_id = id_mssql;
+
+ public:
virtual
~database ();