/[Frey]/trunk/bin/cdbi-generate-schema.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/bin/cdbi-generate-schema.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1011 - (show annotations)
Sat Jan 24 16:29:30 2009 UTC (15 years, 3 months ago) by dpavlin
File MIME type: text/plain
File size: 332 byte(s)
CDBI schema creator script
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5
6 use DBIx::Class::Schema::Loader qw/ make_schema_at /;
7
8 die "usage: $0 'DBI:mysql:database=reblog;host=127.0.0.1;port=13306' Reblog\n" unless $#ARGV == 1;
9
10 my ( $dsn, $name ) = @ARGV;
11
12 make_schema_at(
13 $name, {
14 debug => 1,
15 dump_directory => 'lib/CDBI',
16 }, [
17 $dsn,
18 '',
19 '',
20 ]
21 );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26