From 51956f409ec7ebea8b6790b0c5d4f0b51513d683 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 15 Sep 2013 12:46:09 +0200 Subject: Cleanup polymorphic base tables when dropping derived one --- odb/semantics/relational/table.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'odb/semantics/relational/table.hxx') diff --git a/odb/semantics/relational/table.hxx b/odb/semantics/relational/table.hxx index f46eec1..99c65b7 100644 --- a/odb/semantics/relational/table.hxx +++ b/odb/semantics/relational/table.hxx @@ -20,6 +20,17 @@ namespace semantics virtual void options (string const& o) {options_ = o;} + // Extra information. + // + public: + typedef std::map extra_map; + + extra_map& + extra () {return extra_map_;} + + extra_map const& + extra () const {return extra_map_;} + public: table (string const& id): qnameable (id) {} table (table const&, qscope&, graph&, bool base = false); @@ -44,6 +55,7 @@ namespace semantics protected: string options_; + extra_map extra_map_; }; class add_table: public table -- cgit v1.1