... | ... |
@@ -1,6 +1,7 @@ |
1 | 1 |
0.24 |
2 |
- - support full-qualified table name |
|
3 |
- - added EXPERIMENTAL default_schema attribute |
|
2 |
+ - support schema-qualified table name |
|
3 |
+ - added EXPERIMENTAL default_schema attribute for postgresql not to conflict |
|
4 |
+ same table name. |
|
4 | 5 |
0.23 |
5 | 6 |
- DBIx::Custom::Mapper::map method support |
6 | 7 |
{value => '%<value>%'} syntax |
... | ... |
@@ -1126,7 +1126,7 @@ sub setup_model { |
1126 | 1126 |
sub { |
1127 | 1127 |
my ($self, $table, $column, $column_info) = @_; |
1128 | 1128 |
my $schema = $column_info->{TABLE_SCHEM}; |
1129 |
- return if exists $opt{database} && $opt{database} ne $schema; |
|
1129 |
+ return if exists $opt{schema} && $opt{schema} ne $schema; |
|
1130 | 1130 |
|
1131 | 1131 |
$table = "$schema.$table" if exists $opt{prefix}; |
1132 | 1132 |
if (my $model = $self->models->{$table}) { |
... | ... |
@@ -3431,8 +3431,8 @@ See also L<DBIx::Custom::Where> to know how to create where clause. |
3431 | 3431 |
=head2 C<setup_model> |
3432 | 3432 |
|
3433 | 3433 |
$dbi->setup_model; |
3434 |
- $dbi->setup_model(database => 'main'); |
|
3435 |
- $dbi->setup_model(database => 'main', prefix => 1); |
|
3434 |
+ $dbi->setup_model(schema => 'main'); |
|
3435 |
+ $dbi->setup_model(schema => 'main', prefix => 1); |
|
3436 | 3436 |
|
3437 | 3437 |
Setup all model objects. |
3438 | 3438 |
C<columns> of model object is automatically set, parsing database information. |