added changes from resultset-new-refactor
[dbsrgits/DBIx-Class.git] / Changes
1 Revision history for DBIx::Class
2
3         - add ResultSetColumn
4         - refactor ResultSet code to resolve attrs as late as poss
5         - merge prefetch attrs into join attrs
6         - add +select and +as attributes to ResultSet
7         - added AutoInflate::DateTime component
8         - refactor debugging to allow for profiling using Storage::Statistics
9         - removed Data::UUID from deps, made other optionals required
10         - modified SQLT parser to skip dupe table names
11         - added remove_column(s) to ResultSource/ResultSourceProxy
12         - added add_column alias to ResultSourceProxy
13         - added source_name to ResultSource
14         - load_classes now uses source_name and sets it if necessary
15         - add update_or_create_related to Relationship::Base
16         - add find_or_new to ResultSet/ResultSetProxy and find_or_new_related
17           to Relationship::Base
18         - add accessors for unique constraint names and coulums to
19           ResultSource/ResultSourceProxy
20         - rework ResultSet::find() to search unique constraints
21         - CDBICompat: modify retrieve to fix column casing when ColumnCase is
22           loaded
23         - CDBICompat: override find_or_create to fix column casing when
24           ColumnCase is loaded
25
26 0.06003
27         - make find_or_create_related check defined() instead of truth
28         - don't unnecessarily fetch rels for cascade_update
29         - don't set_columns explicitly in update_or_create; instead use
30           update($hashref) so InflateColumn works
31         - fix for has_many prefetch with 0 related rows
32         - make limit error if rows => 0
33         - added memory cycle tests and a long-needed weaken call
34
35 0.06002 2006-04-20 00:42:41
36         - fix set_from_related to accept undef
37         - fix to Dumper-induced hash iteration bug
38         - fix to copy() with non-composed resultsource
39         - fix to ->search without args to clone rs but maintain cache
40         - grab $self->dbh once per function in Storage::DBI
41         - nuke ResultSource caching of ->resultset for consistency reasons
42         - fix for -and conditions when updating or deleting on a ResultSet
43
44 0.06001 2006-04-08 21:48:43
45         - minor fix to update in case of undefined rels
46         - fixes for cascade delete
47         - substantial improvements and fixes to deploy
48         - Added fix for quoting with single table
49         - Substantial fixes and improvements to deploy
50         - slice now uses search directly
51         - fixes for update() on resultset
52         - bugfix to Cursor to avoid error during DESTROY
53         - transaction DBI operations now in debug trace output
54
55 0.06000 2006-03-25 18:03:46
56         - Lots of documentation improvements
57         - Minor tweak to related_resultset to prevent it storing a searched rs
58         - Fixup to columns_info_for when database returns type(size)
59         - Made do_txn respect void context (on the off-chance somebody cares)
60         - Fix exception text for nonexistent key in ResultSet::find()
61
62 0.05999_04 2006-03-18 19:20:49
63         - Fix for delete on full-table resultsets
64         - Removed caching on count() and added _count for pager()
65         - ->connection does nothing if ->storage defined and no args
66           (and hence ->connect acts like ->clone under the same conditions)
67         - Storage::DBI throws better exception if no connect info
68         - columns_info_for made more robust / informative
69         - ithreads compat added, fork compat improved
70         - weaken result_source in all resultsets
71         - Make pg seq extractor less sensitive.
72
73 0.05999_03 2006-03-14 01:58:10
74         - has_many prefetch fixes
75         - deploy now adds drop statements before creates
76         - deploy outputs debugging statements if DBIX_CLASS_STORAGE_DBI_DEBUG
77             is set
78
79 0.05999_02 2006-03-10 13:31:37
80         - remove test dep on YAML
81         - additional speed tweaks for C3
82         - allow scalarefs passed to order_by to go straight through to SQL
83         - renamed insert_or_update to update_or_insert (with compat alias)
84         - hidden lots of packages from the PAUSE Indexer
85
86 0.05999_01 2006-03-09 18:31:44
87         - renamed cols attribute to columns (cols still supported)
88         - added has_column_loaded to Row
89         - Storage::DBI connect_info supports coderef returning dbh as 1st arg
90         - load_components() doesn't prepend base when comp. prefixed with +
91         - $schema->deploy
92         - HAVING support
93         - prefetch for has_many
94         - cache attr for resultsets
95         - PK::Auto::* no longer required since Storage::DBI::* handle auto-inc
96         - minor tweak to tests for join edge case
97         - added cascade_copy relationship attribute
98           (sponsored by Airspace Software, http://www.airspace.co.uk/)
99         - clean up set_from_related
100         - made copy() automatically null out auto-inc columns
101         - added txn_do() method to Schema, which allows a coderef to be
102           executed atomically
103
104 0.05007 2006-02-24 00:59:00
105         - tweak to Componentised for Class::C3 0.11
106         - fixes for auto-inc under MSSQL
107
108 0.05006 2006-02-17 15:32:40
109         - storage fix for fork() and workaround for Apache::DBI
110         - made update(\%hash) work on row as well as rs
111         - another fix for count with scalar group_by
112         - remove dependency on Module::Find in 40resultsetmanager.t (RT #17598)
113
114 0.05005 2006-02-13 21:24:51
115         - remove build dependency on version.pm
116
117 0.05004 2006-02-13 20:59:00
118         - allow specification of related columns via cols attr when primary
119           keys of the related table are not fetched
120         - fix count for group_by as scalar
121         - add horrific fix to make Oracle's retarded limit syntax work
122         - remove Carp require
123         - changed UUIDColumns to use new UUIDMaker classes for uuid creation
124         using whatever module may be available
125
126 0.05003 2006-02-08 17:50:20
127         - add component_class accessors and use them for *_class
128         - small fixes to Serialize and ResultSetManager
129         - rollback on disconnect, and disconnect on DESTROY
130
131 0.05002 2006-02-06 12:12:03
132         - Added recommends for Class::Inspector
133         - Added skip_all to t/40resultsetmanager.t if no Class::Inspector available
134
135 0.05001 2006-02-05 15:28:10
136         - debug output now prints NULL for undef params
137         - multi-step prefetch along the same rel (e.g. for trees) now works
138         - added multi-join (join => [ 'foo', 'foo' ]), aliases second to foo_2
139         - hack PK::Auto::Pg for "table" names referencing a schema
140         - find() with attributes works
141         - added experimental Serialize and ResultSetManager components
142         - added code attribute recording to DBIx::Class
143         - fix to find() for complex resultsets
144         - added of $storage->debugcb(sub { ... })
145         - added $source->resultset_attributes accessor
146         - added include_columns rs attr
147
148 0.05000 2006-02-01 16:48:30
149         - assorted doc fixes
150         - remove ObjectCache, not yet working in 0.05
151         - let many_to_many rels have attrs
152         - fix ID method in PK.pm to be saner for new internals
153         - fix t/30dbicplain.t to use ::Schema instead of
154           Catalyst::Model::DBIC::Plain
155
156 0.04999_06 2006-01-28 21:20:32
157         - fix Storage/DBI (tried to load deprecated ::Exception component)
158
159 0.04999_05 2006-01-28 20:13:52
160         - count will now work for grouped resultsets
161         - added accessor => option to column_info to specify accessor name
162         - added $schema->populate to load test data (similar to AR fixtures)
163         - removed cdbi-t dependencies, only run tests if installed
164         - Removed DBIx::Class::Exception
165         - unified throw_exception stuff, using Carp::Clan
166         - report query when sth generation fails.
167         - multi-step prefetch!
168         - inheritance fixes
169         - test tweaks
170
171 0.04999_04 2006-01-24 21:48:21
172         - more documentation improvements
173         - add columns_info_for for vendor-specific column info (Zbigniew Lukasiak)
174         - add SQL::Translator::Producer for DBIx::Class table classes (Jess Robinson)
175         - add unique constraint declaration (Daniel Westermann-Clark)
176         - add new update_or_create method (Daniel Westermann-Clark)
177         - rename ResultSetInstance class to ResultSetProxy, ResultSourceInstance
178           to ResultSourceProxy, and TableInstance to ResultSourceProxy::Table
179         - minor fixes to UUIDColumns
180         - add debugfh method and ENV magic for tracing SQL (Nigel Metheringham)
181
182 0.04999_03 2006-01-20 06:05:27
183         - imported Jess Robinson's SQL::Translator::Parser::DBIx::Class
184         - lots of internals cleanup to eliminate result_source_instance requirement
185         - added register_column and register_relationship class APIs
186         - made Storage::DBI use prepare_cached safely (thanks to Tim Bunce)
187         - many documentation improvements (thanks guys!)
188         - added ->connection, ->connect, ->register_source and ->clone schema methods
189         - Use croak instead of die for user errors.
190
191 0.04999_02 2006-01-14 07:17:35
192         - Schema is now self-contained; no requirement for co-operation
193         - add_relationship, relationships, relationship_info, has_relationship
194         - relationship handling on ResultSource
195         - all table handling now in Table.pm / ResultSource.pm
196         - added GROUP BY and DISTINCT support
197         - hacked around SQL::Abstract::Limit some more in DBIC::SQL::Abstract
198           (this may have fixed complex quoting)
199         - moved inflation to inflate_result in Row.pm
200         - added $rs->search_related
201         - split compose_namespace out of compose_connection in Schema
202         - ResultSet now handles find
203         - various *_related methods are now ->search_related->*
204         - added new_result to ResultSet
205
206 0.04999_01 2005-12-27 03:33:42
207         - search and related methods moved to ResultSet
208         - select and as added to ResultSet attrs
209         - added DBIx::Class::Table and TableInstance for table-per-class
210         - added DBIx::Class::ResultSetInstance which handles proxying
211           search etc. as a superclass of DBIx::Class::DB
212         - assorted test and code cleanup work
213
214 0.04001 2005-12-13 22:00:00
215         - Fix so set_inflated_column calls set_column
216         - Syntax errors in relationship classes are now reported
217         - Better error detection in set_primary_key and columns methods
218         - Documentation improvements
219         - Better transaction support with txn_* methods
220         - belongs_to now works when $cond is a string
221         - PK::Auto::Pg updated, only tries primary keys instead of all cols
222
223 0.04 2005-11-26
224         - Moved get_simple and set_simple into AccessorGroup
225         - Made 'new' die if given invalid columns
226         - Added has_column and column_info to Table.pm
227         - Refactored away from direct use of _columns and _primaries
228         - Switched from NEXT to Class::C3
229
230 0.03004
231         - Added an || '' to the CDBICompat stringify to avoid null warnings
232         - Updated name section for manual pods
233 0.03003 2005-11-03 17:00:00
234         - POD fixes.
235         - Changed use to require in Relationship/Base to avoid import.
236
237 0.03002 2005-10-20 22:35:00
238         - Minor bugfix to new (Row.pm)
239         - Schema doesn't die if it can't load a class (Schema.pm)
240         - New UUID columns plugin (UUIDColumns.pm)
241         - Documentation improvements.
242
243 0.03001 2005-09-23 14:00:00
244         - Fixes to relationship helpers
245         - IMPORTANT: prefetch/schema combination bug fix
246
247 0.03    2005-09-19 19:35:00
248         - Paging support
249         - Join support on search
250         - Prefetch support on search
251
252 0.02    2005-08-12 18:00:00
253         - Test fixes.
254         - Performance improvements.
255         - Oracle primary key support.
256         - MS-SQL primary key support.
257         - SQL::Abstract::Limit integration for database-agnostic limiting.
258
259 0.01    2005-08-08 17:10:00
260         - initial release