From a4f25daf17392c9c4b90de60b9d777290706f667 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Apr 2013 11:13:51 +0200 Subject: Generate add/drop foreign key migration statements Also add the --fkeys-deferrable-mode option. General schemas generation rework. --- odb/context.hxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'odb/context.hxx') diff --git a/odb/context.hxx b/odb/context.hxx index d148a97..c06a9c4 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -1050,7 +1050,10 @@ protected: ~data () {} data (std::ostream& os) - : os_ (os.rdbuf ()), top_object_ (0), cur_object_ (0), + : os_ (os.rdbuf ()), + in_comment_ (false), + top_object_ (0), + cur_object_ (0), sql_name_upper_ ("(.+)", "\\U$1"), sql_name_lower_ ("(.+)", "\\L$1") { @@ -1060,6 +1063,8 @@ protected: std::ostream os_; std::stack os_stack_; + bool in_comment_; + semantics::class_* top_object_; semantics::class_* cur_object_; @@ -1090,6 +1095,8 @@ public: features_type& features; database const db; + bool& in_comment; + string& exp; // Export symbol (with trailing space if specified). string& ext; // Extern symbol. -- cgit v1.1