From 1c15805b50657dc511428643d0822f359e79538c 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/mysql/database.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/odb/mysql/database.hxx b/odb/mysql/database.hxx index 537a0e3..b362727 100644 --- a/odb/mysql/database.hxx +++ b/odb/mysql/database.hxx @@ -409,6 +409,11 @@ namespace odb using odb::database::tracer; public: + // Database id constant (useful for meta-programming). + // + static const odb::database_id database_id = id_mysql; + + public: virtual ~database (); -- cgit v1.1