summaryrefslogtreecommitdiff
path: root/odb/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-27 12:31:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-27 12:31:52 +0200
commitef7dd01920a4a28ba3c4aad3abe69bd43beee9fa (patch)
tree3f61b7faf6db272c9182a523b43c545dd9870020 /odb/context.hxx
parentf8699a40bcc099564f330fd937fa6de36d49c4d8 (diff)
Make container schema override object schema
Diffstat (limited to 'odb/context.hxx')
-rw-r--r--odb/context.hxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/odb/context.hxx b/odb/context.hxx
index c63115a..425e9de 100644
--- a/odb/context.hxx
+++ b/odb/context.hxx
@@ -458,6 +458,13 @@ public:
// Database names and types.
//
public:
+ // Schema name for a namespace.
+ //
+ qname
+ schema (semantics::scope&) const;
+
+ //
+ //
qname
table_name (semantics::class_&) const;
@@ -467,8 +474,10 @@ public:
struct table_prefix
{
table_prefix (): level (0) {}
- table_prefix (qname const& p, size_t l): prefix (p), level (l) {}
+ table_prefix (qname const& s, qname const& p, size_t l)
+ : schema (s), prefix (p), level (l) {}
+ qname schema; // Object's namespace schema.
qname prefix;
size_t level;
};