Re: [Dbix-class] Specifying parser for DBIx::Class::InflateColumn::DateTime explicitly?

2010-07-19 Thread Alex Povolotsky
On 07/20/10 02:19, Peter Rabbitson wrote: On Mon, Jul 19, 2010 at 05:08:50PM +0400, Alex Povolotsky wrote: Hello! How do I explicitly specify parser for DBIx::Class::InflateColumn::DateTime explicitly? I'd like to parse incoming dates with DateTime::Format::ISO8601 What do you mean

Re: [Dbix-class] Moose

2010-07-19 Thread Darren Duncan
Peter Rabbitson wrote: On Sun, Jul 18, 2010 at 03:25:50PM -0500, David Ihnen wrote: On Sun, Jul 18, 2010 at 2:30 PM, Leandro Hermida HQL and JPQL which somewhat resemble SQL but work with objects. I would imagine a Moose-based DBIC would have one as well? I would most emphatically scream, N

Re: [Dbix-class] Moose

2010-07-19 Thread Peter Rabbitson
On Sun, Jul 18, 2010 at 03:25:50PM -0500, David Ihnen wrote: > On Sun, Jul 18, 2010 at 2:30 PM, Leandro Hermida > > About the querying question, Hibernate and JPA (which I mentioned earlier) > > have their own query languages > > > > Whoa. Isn't that exactly what we're trying to avoid here? In

Re: [Dbix-class] Moose

2010-07-19 Thread Peter Rabbitson
On Mon, Jul 19, 2010 at 11:20:15AM -0700, Darren Duncan wrote: > Peter Rabbitson wrote: >> On Sun, Jul 18, 2010 at 02:40:47PM +0200, Leandro Hermida wrote: >>> very good points and makes a lot of sense. If I can ask a more general >>> question then, why do ORMs exist in the first place and why are

Re: [Dbix-class] Specifying parser for DBIx::Class::InflateColumn::DateTime explicitly?

2010-07-19 Thread Peter Rabbitson
On Mon, Jul 19, 2010 at 05:08:50PM +0400, Alex Povolotsky wrote: > Hello! > > How do I explicitly specify parser for > DBIx::Class::InflateColumn::DateTime explicitly? > > I'd like to parse incoming dates with DateTime::Format::ISO8601 > What do you mean by this? You have an existing database wi

[Dbix-class] @bind confusion

2010-07-19 Thread Wolfgang Kinkeldei
Hello, when using subqueries in the 'from' part of a query, sometimes the list of @bind parameters is not maintained correct. As a simple testcase please find a primitive subselect enclosed that just does a count with a correlated subquery. # a simple counting subquery my $subquery = $sch

Re: [Dbix-class] Moose

2010-07-19 Thread fREW Schmidt
On Mon, Jul 19, 2010 at 1:20 PM, Darren Duncan wrote: > Peter Rabbitson wrote: > >> On Sun, Jul 18, 2010 at 02:40:47PM +0200, Leandro Hermida wrote: >> >>> very good points and makes a lot of sense. If I can ask a more general >>> question then, why do ORMs exist in the first place and why are th

Re: [Dbix-class] Moose

2010-07-19 Thread Darren Duncan
Peter Rabbitson wrote: On Sun, Jul 18, 2010 at 02:40:47PM +0200, Leandro Hermida wrote: very good points and makes a lot of sense. If I can ask a more general question then, why do ORMs exist in the first place and why are they so popular vs using a object persistence mechanism? There must be

Re: [Dbix-class] Moose

2010-07-19 Thread Darren Duncan
Leandro Hermida wrote: very good points and makes a lot of sense. If I can ask a more general question then, why do ORMs exist in the first place and why are they so popular vs using a object persistence mechanism? There must be some serious advantage to using them. FYI, http://thebuild.com

[Dbix-class] Specifying parser for DBIx::Class::InflateColumn::DateTime explicitly?

2010-07-19 Thread Alex Povolotsky
Hello! How do I explicitly specify parser for DBIx::Class::InflateColumn::DateTime explicitly? I'd like to parse incoming dates with DateTime::Format::ISO8601 Alex. ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.pe

Re: [Dbix-class] resultset_attributes, where, undef - wotz up?

2010-07-19 Thread Benjamin Martin
Either register a new source, OR add a resultset *method* which gives you a restricted subset, and which you use throughout your application. Thanks for the advice... I have done as you advised and the solution is good, clean and maintainable :) ___