From b8554760aa3a5c5697c77d11e507a2bb46dbf8e4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Jul 2012 15:17:16 +0200 Subject: Add support for custom database type mapping New pragma qualifier, map, and specifiers: as, to, from. New tests: /custom. --- odb/relational/context.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'odb/relational/context.cxx') diff --git a/odb/relational/context.cxx b/odb/relational/context.cxx index 8630a30..08e68e5 100644 --- a/odb/relational/context.cxx +++ b/odb/relational/context.cxx @@ -44,6 +44,22 @@ namespace relational current_ = this; } + string context:: + convert (string const& e, string const& c) + { + size_t p (c.find ("(?)")); + string r (c, 0, p); + r += e; + r.append (c, p + 3, string::npos); + return r; + } + + string const& context:: + convert_expr (string const&, semantics::data_member&, bool) + { + assert (false); + } + bool context:: grow_impl (semantics::class_&) { -- cgit v1.1