Make not of introduction of ResultSourceHandle
[dbsrgits/DBIx-Class.git] / Changes
1 Revision history for DBIx::Class
2
3         - add support to Ordered for multiple ordering columns
4         - mark DB.pm and compose_connection as deprecated
5         - switch tests to compose_namespace
6         - ResltClass::HashRefInflator added
7         - Changed row and rs objects to not have direct handle to a source,
8           instead a (schema,source_name) tuple of type ResultSourceHandle
9
10 0.07999_01 2006-10-05 21:00:00
11         - add connect_info option "disable_statement_caching"
12         - create insert_bulk using execute_array, populate uses it
13         - added DBIx::Class::Schema::load_namespaces, alternative to
14           load_classes
15         - added source_info method for source-level metadata (kinda like
16           column_info)
17         - Some of ::Storage::DBI's code/docs moved to ::Storage
18         - DBIx::Class::Schema::txn_do code moved to ::Storage
19         - Storage::DBI now uses exceptions instead of ->ping/->{Active} checks
20         - Storage exceptions are thrown via the schema class's throw_exception
21         - DBIx::Class::Schema::throw_exception's behavior can be modified via
22           ->exception_action
23         - columns_info_for is deprecated, and no longer runs automatically.
24           You can make it work like before via
25           __PACKAGE__->column_info_from_storage(1) for now
26         - Replaced DBIx::Class::AccessorGroup and Class::Data::Accessor with
27           Class::Accessor::Grouped. Only user noticible change is to 
28           table_class on ResultSourceProxy::Table (i.e. table objects in 
29           schemas) and, resultset_class and result_class in ResultSource. 
30           These accessors no longer automatically require the classes when
31           set.
32
33 0.07004
34         - fix find_related-based queries to correctly grep the unique key
35
36 0.07003 2006-11-16 11:52:00
37         - fix for rt.cpan.org #22740 (use $^X instead of hardcoded "perl")
38         - Tweaks to resultset to allow inflate_result to return an array
39         - Fix UTF8Columns to work under Perl <= 5.8.0
40         - Fix up new_result in ResultSet to avoid alias-related bugs
41         - Made new/update/find handle 'single' rel accessor correctly
42         - Fix NoBindVars to be safer and handle non-true bind values
43         - Don't blow up if columns_info_for returns useless results
44         - Documentation updates
45
46 0.07002 2006-09-14 21:17:32
47         - fix quote tests for recent versions of SQLite
48         - added reference implementation of Manual::Example
49         - backported column_info_from_storage accessor from -current, but
50         - fixed inflate_datetime.t tests/stringify under older Test::More
51         - minor fixes for many-to-many relationship helpers
52         - cleared up Relationship docs, and fixed some typos
53         - use ref instead of eval to check limit syntax (to avoid issues with
54           Devel::StackTrace)
55         - update ResultSet::_cond_for_update_delete to handle more complicated
56           queries
57         - bugfix to Oracle columns_info_for
58         - remove_columns now deletes columns from _columns
59
60 0.07001 2006-08-18 19:55:00
61         - add directory argument to deploy()
62         - support default aliases in many_to_many accessors.
63         - support for relationship attributes in many_to_many accessors.
64         - stop search_rs being destructive to attrs
65         - better error reporting when loading components
66         - UTF8Columns changed to use "utf8" instead of "Encode"
67         - restore automatic aliasing in ResultSet::find() on nonunique queries
68         - allow aliases in ResultSet::find() queries (in cases of relationships
69           with prefetch)
70         - pass $attrs to find from update_or_create so a specific key can be
71           provided
72         - remove anonymous blesses to avoid major speed hit on Fedora Core 5's
73           Perl and possibly others; for more information see:
74           https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=196836
75         - fix a pathological prefetch case
76         - table case fix for Oracle in columns_info_for
77         - stopped search_rs deleting attributes from passed hash
78
79 0.07000 2006-07-23 02:30:00
80         - supress warnings for possibly non-unique queries, since
81           _is_unique_query doesn't infer properly in all cases
82         - skip empty queries to eliminate spurious warnings on ->deploy
83         - fixups to ORDER BY, tweaks to deepen some copies in ResultSet
84         - fixup for RowNum limit syntax with functions
85
86 0.06999_07 2006-07-12 20:58:05
87         - fix issue with from attr copying introduced in last release
88
89 0.06999_06 2006-07-12 17:16:55
90         - documentation for new storage options, fix S::A::L hanging on to $dbh
91         - substantial refactor of search_related code to fix alias numbering
92         - don't generate partial unique keys in ResultSet::find() when a table
93           has more than one unique constraint which share a column and only one
94           is satisfied
95         - cleanup UTF8Columns and make more efficient
96         - rename DBIX_CLASS_STORAGE_DBI_DEBUG to DBIC_TRACE (with compat)
97         - rename _parent_rs to _parent_source in ResultSet
98         - new FAQ.pod!
99
100 0.06999_05 2006-07-04 14:40:01
101         - fix issue with incorrect $rs->{attrs}{alias}
102         - fix subclassing issue with source_name
103         - tweak quotes test to output text on failure
104         - fix Schema->txn_do to not fail as a classmethod
105
106 0.06999_04 2006-06-29 20:18:47
107         - disable cdbi-t/02-Film.t warning tests under AS perl
108         - fixups to MySQL tests (aka "work round mysql being retarded")
109         - compat tweaks for Storage debug logging
110
111 0.06999_03 2006-06-26 21:04:44
112         - various documentation improvements
113         - fixes to pass test suite on Windows
114         - rewrote and cleaned up SQL::Translator tests
115         - changed relationship helpers to only call ensure_class_loaded when the
116           join condition is inferred 
117         - rewrote many_to_many implementation, now provides helpers for adding
118           and deleting objects without dealing with the link table
119         - reworked InflateColumn implementation to lazily deflate where
120           possible; now handles passing an inflated object to new()
121         - changed join merging to not create a rel_2 alias when adding a join
122           that already exists in a parent resultset
123         - Storage::DBI::deployment_statements now calls ensure_connected
124           if it isn't passed a type 
125         - fixed Componentized::ensure_class_loaded
126         - InflateColumn::DateTime supports date as well as datetime
127         - split Storage::DBI::MSSQL into MSSQL and Sybase::MSSQL
128         - fixed wrong debugging hook call in Storage::DBI 
129         - set connect_info properly before setting any ->sql_maker things 
130
131 0.06999_02 2006-06-09 23:58:33
132         - Fixed up POD::Coverage tests, filled in some POD holes
133         - Added a warning for incorrect component order in load_components
134         - Fixed resultset bugs to do with related searches
135         - added code and tests for Componentized::ensure_class_found and
136           load_optional_class
137         - NoBindVars + Sybase + MSSQL stuff
138         - only rebless S::DBI if it is still S::DBI and not a subclass
139         - Added `use' statement for DBD::Pg in Storage::DBI::Pg
140         - stopped test relying on order of unordered search
141         - bugfix for join-types in nested joins using the from attribute
142         - obscure prefetch problem fixed
143         - tightened up deep search_related
144         - Fixed 'DBIx/Class/DB.pm did not return a true value' error
145         - Revert change to test for deprecated find usage and swallow warnings
146         - Slight wording change to new_related() POD
147         - new specific test for connect_info coderefs
148         - POD clarification and content bugfixing + a few code formatting fixes
149         - POD::Coverage additions
150         - fixed debugfh
151         - Fix column_info stomping
152
153 0.06999_01 2006-05-28 17:19:30
154         - add automatic naming of unique constraints
155         - marked DB.pm as deprecated and noted it will be removed by 1.0
156         - add ResultSetColumn
157         - refactor ResultSet code to resolve attrs as late as possible
158         - merge prefetch attrs into join attrs
159         - add +select and +as attributes to ResultSet
160         - added InflateColumn::DateTime component
161         - refactor debugging to allow for profiling using Storage::Statistics
162         - removed Data::UUID from deps, made other optionals required
163         - modified SQLT parser to skip dupe table names
164         - added remove_column(s) to ResultSource/ResultSourceProxy
165         - added add_column alias to ResultSourceProxy
166         - added source_name to ResultSource
167         - load_classes now uses source_name and sets it if necessary
168         - add update_or_create_related to Relationship::Base
169         - add find_or_new to ResultSet/ResultSetProxy and find_or_new_related
170           to Relationship::Base
171         - add accessors for unique constraint names and coulums to
172           ResultSource/ResultSourceProxy
173         - rework ResultSet::find() to search unique constraints
174         - CDBICompat: modify retrieve to fix column casing when ColumnCase is
175           loaded
176         - CDBICompat: override find_or_create to fix column casing when
177           ColumnCase is loaded
178         - reorganized and simplified tests
179         - added Ordered
180         - added the ability to set on_connect_do and the various sql_maker
181           options as part of Storage::DBI's connect_info.
182
183 0.06003 2006-05-19 15:37:30
184         - make find_or_create_related check defined() instead of truth
185         - don't unnecessarily fetch rels for cascade_update
186         - don't set_columns explicitly in update_or_create; instead use
187           update($hashref) so InflateColumn works
188         - fix for has_many prefetch with 0 related rows
189         - make limit error if rows => 0
190         - added memory cycle tests and a long-needed weaken call
191
192 0.06002 2006-04-20 00:42:41
193         - fix set_from_related to accept undef
194         - fix to Dumper-induced hash iteration bug
195         - fix to copy() with non-composed resultsource
196         - fix to ->search without args to clone rs but maintain cache
197         - grab $self->dbh once per function in Storage::DBI
198         - nuke ResultSource caching of ->resultset for consistency reasons
199         - fix for -and conditions when updating or deleting on a ResultSet
200
201 0.06001
202         - Added fix for quoting with single table
203         - Substantial fixes and improvements to deploy
204         - slice now uses search directly
205         - fixes for update() on resultset
206         - bugfix to Cursor to avoid error during DESTROY
207         - transaction DBI operations now in debug trace output
208
209 0.06000 2006-03-25 18:03:46
210         - Lots of documentation improvements
211         - Minor tweak to related_resultset to prevent it storing a searched rs
212         - Fixup to columns_info_for when database returns type(size)
213         - Made do_txn respect void context (on the off-chance somebody cares)
214         - Fix exception text for nonexistent key in ResultSet::find()
215
216 0.05999_04 2006-03-18 19:20:49
217         - Fix for delete on full-table resultsets
218         - Removed caching on count() and added _count for pager()
219         - ->connection does nothing if ->storage defined and no args
220           (and hence ->connect acts like ->clone under the same conditions)
221         - Storage::DBI throws better exception if no connect info
222         - columns_info_for made more robust / informative
223         - ithreads compat added, fork compat improved
224         - weaken result_source in all resultsets
225         - Make pg seq extractor less sensitive.
226
227 0.05999_03 2006-03-14 01:58:10
228         - has_many prefetch fixes
229         - deploy now adds drop statements before creates
230         - deploy outputs debugging statements if DBIX_CLASS_STORAGE_DBI_DEBUG
231             is set
232
233 0.05999_02 2006-03-10 13:31:37
234         - remove test dep on YAML
235         - additional speed tweaks for C3
236         - allow scalarefs passed to order_by to go straight through to SQL
237         - renamed insert_or_update to update_or_insert (with compat alias)
238         - hidden lots of packages from the PAUSE Indexer
239
240 0.05999_01 2006-03-09 18:31:44
241         - renamed cols attribute to columns (cols still supported)
242         - added has_column_loaded to Row
243         - Storage::DBI connect_info supports coderef returning dbh as 1st arg
244         - load_components() doesn't prepend base when comp. prefixed with +
245         - $schema->deploy
246         - HAVING support
247         - prefetch for has_many
248         - cache attr for resultsets
249         - PK::Auto::* no longer required since Storage::DBI::* handle auto-inc
250         - minor tweak to tests for join edge case
251         - added cascade_copy relationship attribute
252           (sponsored by Airspace Software, http://www.airspace.co.uk/)
253         - clean up set_from_related
254         - made copy() automatically null out auto-inc columns
255         - added txn_do() method to Schema, which allows a coderef to be
256           executed atomically
257
258 0.05007 2006-02-24 00:59:00
259         - tweak to Componentised for Class::C3 0.11
260         - fixes for auto-inc under MSSQL
261
262 0.05006 2006-02-17 15:32:40
263         - storage fix for fork() and workaround for Apache::DBI
264         - made update(\%hash) work on row as well as rs
265         - another fix for count with scalar group_by
266         - remove dependency on Module::Find in 40resultsetmanager.t (RT #17598)
267
268 0.05005 2006-02-13 21:24:51
269         - remove build dependency on version.pm
270
271 0.05004 2006-02-13 20:59:00
272         - allow specification of related columns via cols attr when primary
273           keys of the related table are not fetched
274         - fix count for group_by as scalar
275         - add horrific fix to make Oracle's retarded limit syntax work
276         - remove Carp require
277         - changed UUIDColumns to use new UUIDMaker classes for uuid creation
278         using whatever module may be available
279
280 0.05003 2006-02-08 17:50:20
281         - add component_class accessors and use them for *_class
282         - small fixes to Serialize and ResultSetManager
283         - rollback on disconnect, and disconnect on DESTROY
284
285 0.05002 2006-02-06 12:12:03
286         - Added recommends for Class::Inspector
287         - Added skip_all to t/40resultsetmanager.t if no Class::Inspector available
288
289 0.05001 2006-02-05 15:28:10
290         - debug output now prints NULL for undef params
291         - multi-step prefetch along the same rel (e.g. for trees) now works
292         - added multi-join (join => [ 'foo', 'foo' ]), aliases second to foo_2
293         - hack PK::Auto::Pg for "table" names referencing a schema
294         - find() with attributes works
295         - added experimental Serialize and ResultSetManager components
296         - added code attribute recording to DBIx::Class
297         - fix to find() for complex resultsets
298         - added of $storage->debugcb(sub { ... })
299         - added $source->resultset_attributes accessor
300         - added include_columns rs attr
301
302 0.05000 2006-02-01 16:48:30
303         - assorted doc fixes
304         - remove ObjectCache, not yet working in 0.05
305         - let many_to_many rels have attrs
306         - fix ID method in PK.pm to be saner for new internals
307         - fix t/30dbicplain.t to use ::Schema instead of
308           Catalyst::Model::DBIC::Plain
309
310 0.04999_06 2006-01-28 21:20:32
311         - fix Storage/DBI (tried to load deprecated ::Exception component)
312
313 0.04999_05 2006-01-28 20:13:52
314         - count will now work for grouped resultsets
315         - added accessor => option to column_info to specify accessor name
316         - added $schema->populate to load test data (similar to AR fixtures)
317         - removed cdbi-t dependencies, only run tests if installed
318         - Removed DBIx::Class::Exception
319         - unified throw_exception stuff, using Carp::Clan
320         - report query when sth generation fails.
321         - multi-step prefetch!
322         - inheritance fixes
323         - test tweaks
324
325 0.04999_04 2006-01-24 21:48:21
326         - more documentation improvements
327         - add columns_info_for for vendor-specific column info (Zbigniew Lukasiak)
328         - add SQL::Translator::Producer for DBIx::Class table classes (Jess Robinson)
329         - add unique constraint declaration (Daniel Westermann-Clark)
330         - add new update_or_create method (Daniel Westermann-Clark)
331         - rename ResultSetInstance class to ResultSetProxy, ResultSourceInstance
332           to ResultSourceProxy, and TableInstance to ResultSourceProxy::Table
333         - minor fixes to UUIDColumns
334         - add debugfh method and ENV magic for tracing SQL (Nigel Metheringham)
335
336 0.04999_03 2006-01-20 06:05:27
337         - imported Jess Robinson's SQL::Translator::Parser::DBIx::Class
338         - lots of internals cleanup to eliminate result_source_instance requirement
339         - added register_column and register_relationship class APIs
340         - made Storage::DBI use prepare_cached safely (thanks to Tim Bunce)
341         - many documentation improvements (thanks guys!)
342         - added ->connection, ->connect, ->register_source and ->clone schema methods
343         - Use croak instead of die for user errors.
344
345 0.04999_02 2006-01-14 07:17:35
346         - Schema is now self-contained; no requirement for co-operation
347         - add_relationship, relationships, relationship_info, has_relationship
348         - relationship handling on ResultSource
349         - all table handling now in Table.pm / ResultSource.pm
350         - added GROUP BY and DISTINCT support
351         - hacked around SQL::Abstract::Limit some more in DBIC::SQL::Abstract
352           (this may have fixed complex quoting)
353         - moved inflation to inflate_result in Row.pm
354         - added $rs->search_related
355         - split compose_namespace out of compose_connection in Schema
356         - ResultSet now handles find
357         - various *_related methods are now ->search_related->*
358         - added new_result to ResultSet
359
360 0.04999_01 2005-12-27 03:33:42
361         - search and related methods moved to ResultSet
362         - select and as added to ResultSet attrs
363         - added DBIx::Class::Table and TableInstance for table-per-class
364         - added DBIx::Class::ResultSetInstance which handles proxying
365           search etc. as a superclass of DBIx::Class::DB
366         - assorted test and code cleanup work
367
368 0.04001 2005-12-13 22:00:00
369         - Fix so set_inflated_column calls set_column
370         - Syntax errors in relationship classes are now reported
371         - Better error detection in set_primary_key and columns methods
372         - Documentation improvements
373         - Better transaction support with txn_* methods
374         - belongs_to now works when $cond is a string
375         - PK::Auto::Pg updated, only tries primary keys instead of all cols
376
377 0.04 2005-11-26
378         - Moved get_simple and set_simple into AccessorGroup
379         - Made 'new' die if given invalid columns
380         - Added has_column and column_info to Table.pm
381         - Refactored away from direct use of _columns and _primaries
382         - Switched from NEXT to Class::C3
383
384 0.03004
385         - Added an || '' to the CDBICompat stringify to avoid null warnings
386         - Updated name section for manual pods
387 0.03003 2005-11-03 17:00:00
388         - POD fixes.
389         - Changed use to require in Relationship/Base to avoid import.
390
391 0.03002 2005-10-20 22:35:00
392         - Minor bugfix to new (Row.pm)
393         - Schema doesn't die if it can't load a class (Schema.pm)
394         - New UUID columns plugin (UUIDColumns.pm)
395         - Documentation improvements.
396
397 0.03001 2005-09-23 14:00:00
398         - Fixes to relationship helpers
399         - IMPORTANT: prefetch/schema combination bug fix
400
401 0.03    2005-09-19 19:35:00
402         - Paging support
403         - Join support on search
404         - Prefetch support on search
405
406 0.02    2005-08-12 18:00:00
407         - Test fixes.
408         - Performance improvements.
409         - Oracle primary key support.
410         - MS-SQL primary key support.
411         - SQL::Abstract::Limit integration for database-agnostic limiting.
412
413 0.01    2005-08-08 17:10:00
414         - initial release