NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Change ORM ! (Score:1)
Well, if 255 methods/27 classes are too much for your taste, change ORM!
DBIx::DataModel [cpan.org] will only cost you about 50 methods in 3 classes (the exact number depends on how many relationships there are between this table and other tables).
(sorry, DBIC folks, I couldn't resist ...)
Re: (Score:2)
Well, I doubt I could push that through at work, but I suspect that I'd be inclined to go the SQL dictionary route. Still, just glancing at it, DBIx::DataModel looks interesting.
Re: (Score:1)
No no, no SQL dictionary, you want to look at Fey.
Re: (Score:2)
Ah, that looks lovely! And yes, better than a dictionary.
Re: (Score:1)
It is lovely! I have been using it for a while and it has worked out every bit as well as I had hoped for. Sometimes I had to change the shape of my queries a little to accommodate it, but I have yet to run into a wall due to the fundamental design. There were stumbling blocks in cases where I ran into corners that Dave hadn’t built out yet – f.ex. when I first started with it, it failed if you tried to join against a table alias, which I needed for my tag (as in “folksonomy”) joins.
Re: (Score:1)
package Forum::Model::User; use Forum::Model::Schema; use Fey::ORM::Table; has_table( Forum::Model::Schema->Schema()->table('User') );It could be just:package Forum::Model::User; use base Forum::Model::Schema; has_table( 'User' )I am acustomed to the DBIC way of having a normal Schema object that keeps the connectRe: (Score:1)
I’m talking only about Fey::SQL, not Fey::ORM. I don’t use Fey::ORM at all.
But do to take up your concerns with Dave – he’s a reasonable guy.
Re: (Score:1)
Re:Change ORM ! (Score:1)
Ah. Well, I am happy to remain blissfully unaware of these issues and to stick with Fey::SQL. :-)
Reply to This
Parent