diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-08 11:13:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-10 18:46:44 +0200 |
commit | a4f25daf17392c9c4b90de60b9d777290706f667 (patch) | |
tree | e3b4903ac35eb2ec4c44cfc7ce630f5d964c7b3d /odb/context.hxx | |
parent | 2fa6a4d00945866e62d980270d5807f3abca75ab (diff) |
Generate add/drop foreign key migration statements
Also add the --fkeys-deferrable-mode option. General schemas generation
rework.
Diffstat (limited to 'odb/context.hxx')
-rw-r--r-- | odb/context.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
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<std::streambuf*> 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. |