diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-17 10:55:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-17 10:55:13 +0200 |
commit | b505d1a2c18084505b3a69f08e3465619f2de0dd (patch) | |
tree | a8d2070538742399cc66f34bf106948aaf90b8c0 | |
parent | 53e67434842568a929cddc4db775dbf958f3d264 (diff) |
Add database id constant (useful for meta-programming)
-rw-r--r-- | odb/pgsql/database.hxx | 5 |
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 (); |