From 84cb9f184bc24ef7151ab9931b46311b03219b14 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Apr 2013 15:54:19 +0200 Subject: Add support for table options in changelog, use to handle MySQL engine --- odb/semantics/relational/table.hxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'odb/semantics/relational/table.hxx') diff --git a/odb/semantics/relational/table.hxx b/odb/semantics/relational/table.hxx index ae4c96c..f46eec1 100644 --- a/odb/semantics/relational/table.hxx +++ b/odb/semantics/relational/table.hxx @@ -14,6 +14,13 @@ namespace semantics class table: public qnameable, public uscope { public: + virtual string const& + options () const {return options_;} + + virtual void + options (string const& o) {options_ = o;} + + public: table (string const& id): qnameable (id) {} table (table const&, qscope&, graph&, bool base = false); table (xml::parser&, qscope&, graph&, bool base = false); @@ -30,6 +37,13 @@ namespace semantics // Resolve ambiguity. // using qnameable::scope; + + protected: + void + serialize_attributes (xml::serializer&) const; + + protected: + string options_; }; class add_table: public table -- cgit v1.1