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