From: Justin Hunter Date: Sun, 23 Aug 2009 06:59:28 +0000 (-0700) Subject: make schema lazy X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f60616da457214337fc89a26cc9bcd899b80a11;p=dbsrgits%2FSQL-Translator-2.0-ish.git make schema lazy --- diff --git a/lib/SQL/Translator.pm b/lib/SQL/Translator.pm index 711bca4..5726794 100644 --- a/lib/SQL/Translator.pm +++ b/lib/SQL/Translator.pm @@ -40,7 +40,8 @@ class SQL::Translator { has 'schema' => ( isa => Schema, is => 'rw', - default => sub { SQL::Translator::Object::Schema->new } + lazy => 1, + default => sub { SQL::Translator::Object::Schema->new }, ); has 'parser_args' => (