view release on metacpan or search on metacpan
7197207217227237247257267277287297307317327337347357367377387390.03001 Mon Jun 5 23:17:57 UTC 2006
- load_from_connection deprecation notice now mentions
upgrading Catalyst::Model::DBIC::Schema
if
that module
seems to be in
use
.
- DBIx::Class required version number fixed
- Loader statement caching
for
better load-
time
performance
- Improved Pg unique
index
loader, based on RDBO
0.03000 Tue May 23 12:56:05 UTC 2006
- weakened the circular schema reference
0.02999_10 Mon May 22 18:58:20 UTC 2006
- a few more small bugfixes
- more
dump
/debug improvements
- new exportable function
"make_schema_at"
0.02999_09 Sun May 21 23:26:58 UTC 2006
- More docs improvements
-
default
uniq_info just warns and returns nothing now,
instead of dying. In theory, this allows unsupported
lib/DBIx/Class/Schema/Loader.pm view on Meta::CPAN
12345678910111213141516171819package
DBIx::Class::Schema::Loader;
use
strict;
use
warnings;
use
base
qw/https://metacpan.org/pod/DBIx::Class::Schema">DBIx::Class::Schema Class::Accessor::Grouped/
;
use
MRO::Compat;
use
Try::Tiny;
use
curry;
use
namespace::clean;
# Always remember to do all digits for the version even if they're 0
# i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports
# brain damage and presumably various other packaging systems too
our
$VERSION
=
'0.07053'
;
lib/DBIx/Class/Schema/Loader.pm view on Meta::CPAN
390391392393394395396397398399400401402403404405406407408409410=cut
sub clone {
my $self = shift;
my $clone = $self->next::method(@_);
if($clone->_loader_args) {
$clone->_loader_args->{schema} = $clone;
weaken($clone->_loader_args->{schema});
}
$clone;
}
=head2 dump_to_dir
=over 4
=item Argument: $directory
lib/DBIx/Class/Schema/Loader/Column.pm view on Meta::CPAN
123456789101112131415161718package
DBIx::Class::Schema::Loader::Column;
use
strict;
use
warnings;
use
namespace::clean;
=head1 NAME
DBIx::Class::Schema::Loader::Column - Class for Columns in
L<DBIx::Class::Schema::Loader>
=head1 DESCRIPTION
Used for representing columns in
lib/DBIx/Class/Schema/Loader/Column.pm view on Meta::CPAN
414243444546474849505152535455565758596061The constructor. Takes L</table> and L</name> key-value parameters.
=cut
sub new {
my $class = shift;
my $self = { @_ };
croak "table is required" unless ref $self->{table};
weaken $self->{table};
return bless $self, $class;
}
=head2 table
The L</DBIx::Class::Schema::Loader::Table> object this column belongs to.
Required parameter for L</new>
=head2 name
lib/DBIx/Class/Schema/Loader/DBObject.pm view on Meta::CPAN
123456789101112131415161718use
strict;
use
warnings;
use
namespace::clean;
=head1 NAME
DBIx::Class::Schema::Loader::DBObject - Base Class for Database Objects Such as
Tables and Views in L<DBIx::Class::Schema::Loader>
=head1 METHODS
=head2 loader
lib/DBIx/Class/Schema/Loader/DBObject.pm view on Meta::CPAN
4546474849505152535455565758596061626364=cut
sub new {
my $class = shift;
my $self = { @_ };
croak "loader is required" unless ref $self->{loader};
weaken $self->{loader};
$self->{_schema} = delete $self->{schema};
return bless $self, $class;
}
=head2 clone
Make a shallow copy of the object.
lib/DBIx/Class/Schema/Loader/RelBuilder.pm view on Meta::CPAN
123456789101112131415161718use
strict;
use
warnings;
use
Try::Tiny;
use
namespace::clean;
use
Lingua::EN::Inflect::Phrase ();
use
Lingua::EN::Tagger ();
use
String::ToIdentifier::EN ();
use
Class::Unload ();
use
Class::Inspector ();
lib/DBIx/Class/Schema/Loader/RelBuilder.pm view on Meta::CPAN
137138139140141142143144145146147148149150151152153154155156157my
$self
= {
loader
=>
$loader
,
(
map
{
$_
=>
$loader
->
$_
}
qw(
schema inflect_plural inflect_singular
relationship_attrs rel_collision_map
rel_name_map allow_extra_m2m_cols
)
),
_temp_classes
=> [],
};
weaken
$self
->{loader};
#< don't leak
bless
$self
=>
$class
;
# validate the relationship_attrs arg
if
(
defined
$self
->relationship_attrs ) {
(
ref
$self
->relationship_attrs eq
'HASH'
||
ref
$self
->relationship_attrs eq
'CODE'
)
or croak
"relationship_attrs must be a hashref or coderef"
;
}
return
$self
;
t/backcompat/0.04006/lib/dbixcsl_test_dir.pm view on Meta::CPAN
1234567891011121314151617package
dbixcsl_test_dir;
use
strict;
use
warnings;
use
namespace::clean;
use
DBI ();
our
@EXPORT_OK
=
'$tdir'
;
die
"/t does not exist, this can't be right...\n"
unless
-d
't'
;
my
$tbdir
=
't/var'
;
t/backcompat/0.04006/lib/dbixcsl_test_dir.pm view on Meta::CPAN
282930313233343536373839404142434445464748no
warnings
'redefine'
;
my
$connect
= \
&DBI::connect
;
my
@handles
;
*DBI::connect
=
sub
{
my
$dbh
=
$connect
->(
@_
);
push
@handles
,
$dbh
;
weaken
$handles
[-1];
return
$dbh
;
};
END {
if
(not
$ENV
{SCHEMA_LOADER_TESTS_NOCLEANUP}) {
foreach
my
$dbh
(
@handles
) {
$dbh
->disconnect
if
$dbh
;
}
rmtree(
$tdir
, 1, 1);
t/lib/dbixcsl_test_dir.pm view on Meta::CPAN
1234567891011121314151617package
dbixcsl_test_dir;
use
strict;
use
warnings;
use
namespace::clean;
use
DBI ();
our
@EXPORT_OK
=
'$tdir'
;
die
"/t does not exist, this can't be right...\n"
unless
-d
't'
;
my
$tbdir
=
't/var'
;
t/lib/dbixcsl_test_dir.pm view on Meta::CPAN
282930313233343536373839404142434445464748no
warnings
'redefine'
;
my
$connect
= \
&DBI::connect
;
my
@handles
;
*DBI::connect
=
sub
{
my
$dbh
=
$connect
->(
@_
);
push
@handles
,
$dbh
;
weaken
$handles
[-1];
return
$dbh
;
};
END {
if
(not
$ENV
{SCHEMA_LOADER_TESTS_NOCLEANUP}) {
foreach
my
$dbh
(
@handles
) {
$dbh
->disconnect
if
$dbh
;
}
rmtree(
$tdir
, 1, 1);