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
commitb505d1a2c18084505b3a69f08e3465619f2de0dd (patch)
treea8d2070538742399cc66f34bf106948aaf90b8c0
parent53e67434842568a929cddc4db775dbf958f3d264 (diff)
Add database id constant (useful for meta-programming)
-rw-r--r--odb/pgsql/database.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/pgsql/database.hxx b/odb/pgsql/database.hxx
index 714dcfe..18dd0b9 100644
--- a/odb/pgsql/database.hxx
+++ b/odb/pgsql/database.hxx
@@ -303,6 +303,11 @@ namespace odb
connection ();
public:
+ // Database id constant (useful for meta-programming).
+ //
+ static const odb::database_id database_id = id_pgsql;
+
+ public:
virtual
~database ();