[Dbix-class] Re: SELECT .. FOR
... (and other db-specific clauses).
Matt S Trout
dbix-class at trout.me.uk
Sat Jul 7 17:22:37 GMT 2007
On Sun, Jul 08, 2007 at 12:42:52AM +0900, Daisuke Maki wrote:
>
> >Yeah, although (re your outline patch) I think it should be done as an
> >'inherited' type group accessor; that way the default can be set per-class
> >without having to add the _rebless hook.
>
> Oh, *that's* how you use this accessor system...
> grepping for 'inherited', I think I get it.
> I was wondering about that.
:)
> Okay, so I've now done the following:
> * Add sql_maker_class to DBIC::Storage::DBI as an inherited accessor
> * Change DBIC::Storage::DBI->sql_maker so that it uses
> sql_maker_class() to choose which class to instantiate
>
> * Refactored Storage::DBI::Oracle::WhereJoins's sql_maker()
> method (UNTESTED)
>
> * Add support for "locking" attribute to DBIC::SQL::Abstract
> (NOT DBIC::Storage::Pg), since we've identified Pg, mysql,
> Oracle, and DB2 supporting this syntax.
Looks fairly reasonable. Why are you calling it 'locking' instead of 'for' ?
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
More information about the Dbix-class
mailing list