1 package SQL::Translator::Producer::Storable;
5 SQL::Translator::Producer::Storable - serializes the SQL::Translator::Schema
6 object via the Storable module
12 my $translator = SQL::Translator->new;
13 $translator->producer('Storable');
17 This module uses Storable to serialize a schema to a string so that it
18 can be saved to disk. Serializing a schema and then calling producers
19 on the stored can realize significant performance gains when parsing
26 our ( $DEBUG, @EXPORT_OK );
27 $DEBUG = 0 unless defined $DEBUG;
28 our $VERSION = '1.59';
32 use base qw(Exporter);
34 @EXPORT_OK = qw(produce);
38 my $args = $t->producer_args;
39 my $schema = $t->schema;
40 my $serialized = Storable::nfreeze($schema);
51 Paul Harrington E<lt>harringp@deshaw.comE<gt>.
55 SQL::Translator, SQL::Translator::Schema, Storable.