1 package SQL::Translator::Producer::Storable;
3 # $Source: /home/faga/work/sqlfairy_svn/sqlfairy-cvsbackup/sqlfairy/lib/SQL/Translator/Producer/Storable.pm,v $
4 # $Id: Storable.pm,v 1.3 2003-10-08 22:55:10 kycl4rk Exp $
8 SQL::Translator::Producer::Storable - null producer for Schema objects that have already been created.
13 use SQL::Translator::Producer::Storable;
15 my $translator = SQL::Translator->new;
16 $translator->producer("SQL::Translator::Producer::Storable");
20 Uses Storable to serialize a schema to a string so that it can be
21 saved on disk or whatever.
26 use vars qw($DEBUG $VERSION @EXPORT_OK);
27 $DEBUG = 0 unless defined $DEBUG;
28 $VERSION = sprintf "%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/;
32 use SQL::Translator::Utils qw(debug normalize_name);
34 use base qw(Exporter);
36 @EXPORT_OK = qw(produce);
41 my $args = $t->producer_args;
42 my $schema = $t->schema;
43 my $serialized = Storable::nfreeze($schema);
54 Paul Harrington <harringp@deshaw.com>.