aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ();