'Text::Balanced' => 0,
'Class::Accessor::Fast' => 0.22,
'Class::Data::Accessor' => 0.02,
+ 'Class::C3' => 0.09,
},
build_requires => {
'Test::More' => 0.32,
license: perl
requires:
Class::Accessor::Fast: 0.22
+ Class::C3: 0.09
Class::Data::Accessor: 0.02
DBIx::Class: 0.0499907
Lingua::EN::Inflect: 0
$args{schema} = $class;
$class->loader($impl->new(%args));
+ $class->loader->load;
}
=head1 AUTHOR
use strict;
use warnings;
+use Class::C3;
use base 'DBIx::Class::Schema::Loader::Generic';
=head1 NAME
use strict;
use warnings;
+use Class::C3;
use Carp;
use Lingua::EN::Inflect;
Constructor for L<DBIx::Class::Schema::Loader::Generic>, used internally
by L<DBIx::Class::Schema::Loader>.
+=head3 load
+
+Does the actual schema-construction work, used internally by
+L<DBIx::Class::Schema::Loader> right after object construction.
+
=cut
# ensure that a peice of object data is a valid arrayref, creating
$self->{monikers} = {};
$self->{classes} = {};
+ $self;
+}
+
+sub load {
+ my $self = shift;
+
$self->schema->connection($self->dsn, $self->user,
$self->password, $self->options);
use strict;
use warnings;
+use Class::C3;
+
use base 'DBIx::Class::Schema::Loader::Generic';
=head1 NAME
See L<DBIx::Class::Schema::Loader>.
+=head1 METHODS
+
+=head3 new
+
+Overrides L<DBIx::Class::Schema::Loader::Generic>'s C<new()> to default the postgres
+schema to C<public> rather than blank.
+
=cut
+sub new {
+ my ($class, %args) = @_;
+
+ my $self = $class->next::method(%args);
+ $self->{db_schema} ||= 'public';
+
+ $self;
+}
+
sub _db_classes {
return qw/DBIx::Class::PK::Auto::Pg/;
}
use strict;
use warnings;
+use Class::C3;
use base qw/DBIx::Class::Schema::Loader::Generic/;
use Text::Balanced qw( extract_bracketed );
use strict;
use warnings;
+ use Class::C3;
use base 'DBIx::Class::Schema::Loader::Generic';
sub _db_classes {
use strict;
use warnings;
+use Class::C3;
use base 'DBIx::Class::Schema::Loader::Generic';
=head1 NAME