From: Ken Youens-Clark Date: Tue, 9 Mar 2004 19:19:49 +0000 (+0000) Subject: Serializing translator options. X-Git-Tag: v0.06~144 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=25a2e5c63b2aa571529742c91931e2bf03244b0a;p=dbsrgits%2FSQL-Translator.git Serializing translator options. --- diff --git a/lib/SQL/Translator/Producer/YAML.pm b/lib/SQL/Translator/Producer/YAML.pm index d58abed..5287e24 100644 --- a/lib/SQL/Translator/Producer/YAML.pm +++ b/lib/SQL/Translator/Producer/YAML.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::YAML; # ------------------------------------------------------------------- -# $Id: YAML.pm,v 1.8 2004-02-09 23:02:17 kycl4rk Exp $ +# $Id: YAML.pm,v 1.9 2004-03-09 19:19:49 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2002-4 SQLFairy Authors # @@ -41,7 +41,7 @@ takes a long time. use strict; use vars qw($VERSION); -$VERSION = sprintf "%d.%02d", q$Revision: 1.8 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/; use YAML qw(Dump); @@ -68,6 +68,18 @@ sub produce { map { ($_->name => view_procedure($_)) } $schema->get_procedures, }, + }, + translator => { + add_drop_table => $translator->add_drop_table, + filename => $translator->filename, + no_comments => $translator->no_comments, + parser_args => $translator->parser_args, + producer_args => $translator->producer_args, + parser_type => $translator->parser_type, + producer_type => $translator->producer_type, + show_warnings => $translator->show_warnings, + trace => $translator->trace, + version => $translator->version, } }); }