From b505d1a2c18084505b3a69f08e3465619f2de0dd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Jan 2013 10:55:13 +0200 Subject: Add database id constant (useful for meta-programming) --- odb/pgsql/database.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'odb/pgsql') 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 (); -- cgit v1.1