Revision history for DBIx::Class
+0.07999_01 2006-10-05 21:00:00
+ - add connect_info option "disable_statement_caching"
+ - create insert_bulk using execute_array, populate uses it
+ - added DBIx::Class::Schema::load_namespaces, alternative to
+ load_classes
+ - added source_info method for source-level metadata (kinda like
+ column_info)
+ - Some of ::Storage::DBI's code/docs moved to ::Storage
+ - DBIx::Class::Schema::txn_do code moved to ::Storage
+ - Storage::DBI now uses exceptions instead of ->ping/->{Active} checks
+ - Storage exceptions are thrown via the schema class's throw_exception
+ - DBIx::Class::Schema::throw_exception's behavior can be modified via
+ ->exception_action
+ - columns_info_for is deprecated, and no longer runs automatically.
+ You can make it work like before via
+ __PACKAGE__->column_info_from_storage(1) for now
+
0.07003 2006-XX-XX XX:XX:XX
- Fix UTF8Columns to work under Perl <= 5.8.0
- Fix up new_result in ResultSet to avoid alias-related bugs
+ - Made new/update/find handle 'single' rel accessor correctly
+ - Fix NoBindVars to be safer and handle non-true bind values
0.07002 2006-09-14 21:17:32
- fix quote tests for recent versions of SQLite
- added reference implementation of Manual::Example
- backported column_info_from_storage accessor from -current, but
- defaults true instead of false in 0.07xxx
- fixed inflate_datetime.t tests/stringify under older Test::More
- minor fixes for many-to-many relationship helpers
- cleared up Relationship docs, and fixed some typos
=head2 Transactions
As of version 0.04001, there is improved transaction support in
-L<DBIx::Class::Storage::DBI> and L<DBIx::Class::Schema>. Here is an
+L<DBIx::Class::Storage> and L<DBIx::Class::Schema>. Here is an
example of the recommended way to use it:
my $genus = $schema->resultset('Genus')->find(12);
=head2 Profiling
-When you enable L<DBIx::Class::Storage::DBI>'s debugging it prints the SQL
+When you enable L<DBIx::Class::Storage>'s debugging it prints the SQL
executed as well as notifications of query completion and transaction
begin/commit. If you'd like to profile the SQL you can subclass the
L<DBIx::Class::Storage::Statistics> class and write your own profiling
my ($me, $rest) = @_;
return { %$me,
- map { ($_ => mk_hash(@{$rest->{$_}})) } keys %$rest }
+ map { ($_ => mk_hash(@{$rest->{$_}})) } keys %$rest
};
}
$rs->result_class('My::HashRefInflator');
my $datahashref = $rs->next;
- foreach my $col (keys $datahashref) {
- if(!ref($datahashref->{$col}) {
+ foreach my $col (keys %$datahashref) {
+ if(!ref($datahashref->{$col})) {
# It's a plain value
}
elsif(ref($datahashref->{$col} eq 'HASH')) {