From: Brandon L. Black Date: Wed, 23 Aug 2006 20:12:30 +0000 (+0000) Subject: Changes synced up with everything that has happened, and deprecation notices added... X-Git-Tag: v0.08010~43^2~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c22c762537ac2a8f6aea581c7798058cebbaeb8a;p=dbsrgits%2FDBIx-Class.git Changes synced up with everything that has happened, and deprecation notices added to columns_info_for docs --- diff --git a/Changes b/Changes index d0389c1..c71ff86 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,18 @@ Revision history for DBIx::Class + - 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__->load_column_info_from_storage for now - use ref instead of eval to check limit syntax (to avoid issues with Devel::StackTrace) - remove_columns now deletes columns from _columns diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index 82b7c7b..4df3fa4 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -220,7 +220,8 @@ sub column_info { =head2 load_column_info_from_storage Enables the on-demand automatic loading of the above column -metadata from storage as neccesary. +metadata from storage as neccesary. This is *deprecated*, and +should not be used. It will be removed before 1.0. =cut diff --git a/lib/DBIx/Class/Storage.pm b/lib/DBIx/Class/Storage.pm index e422da4..f98001b 100644 --- a/lib/DBIx/Class/Storage.pm +++ b/lib/DBIx/Class/Storage.pm @@ -388,7 +388,9 @@ sub select_single { die "Virtual method!" } =head2 columns_info_for -Returns database type info for the given table's columns. +Returns metadata for the given source's columns. This +is *deprecated*, and will be removed before 1.0. You should +be specifying the metadata yourself if you need it. =cut