|
ReleaseNotes
Release Notes
IntroductionRelease Notes DBR 1.1 - Release candidate 1Headliners
It should always work now regardless of whether you have fetched any records or not. The following syntax is now possible:my $items = $order->items->where( status => 'active' );This is infinately chainable, because you may now call ->where on any resultset to get a sub-resultset. In fact, the above example only initiates one query of the items table per chunk of 1,000 order records. This resulted from a major remodel of the relationship code to implement lazy execution at the time of the first ->next, rather than ->where. Any inserts into a table with one or more non-null fields will require that you provide a values for them. The only downside is that it does not respect database enforced default values. Some discussion of this one may be required prior to the final release of 1.1 as this may actually break some production code. DBR::Util::Operator now exports AND and OR subroutines, with evil syntactic sugaryness.
There is zero documentation on this right now, but the following sort of logic is now possible:
Some handy stuff
This does full type, range and regex checking. It's very handy for data validation. Some stuff I heartlessly broke
Yes, I've broken everything this time. Any existing dbr metadata databases will need to to be updated to contain the regex column on table dbr_fields... OR YOUR CODE WILL ASPLODE. The table creates in the sql directory have been updated accordingly.Do this:alter table dbr_fields add regex varchar(255); Sorry for being a bit heavy handed about removing this, but the former browse code belongs elsewhere. John: I'd be happy to discuss a better place for the code. Some things that are Not included in 1.1
I think I have a pretty good thing going on https://perl-dbr.googlecode.com/svn/branches/pre_1.1 but I didn't want it to hold up the 1.1 release. I need help with finishing this! Volunteers would be much appreciated. Hopefully I can whip something up before the final release of 1.1 Sadly, this 1.1 design goal is not going to happen just yet. |