> > On 5 , 02:11, George Mpouras
> > <
antispam.gravital...@hotmail.com.nospam.me> wrote:
> > > Your question is very generic. For me the simple CGI with some DBI
> > > module is enough.
>
> > the question is quite concrete.
>
> I agree. I only didn't respond because I don't think I've got a good
> answer.
>
> > I do not ask "what perl webframework do you prefere" but "which perl
> > webframework is model-centric".
>
> IIUC you aren't just looking for something which puts the business logic
> in the model (which is simply good practice in an MVC system) but you
> more specifically want a system which will generate and update a
> database schema out of thin air given only a set of objects to store.
like you write, but "out of the class definition and related meta-
data" (and some version information about the database which the
framework keeps internally)
> If you just want a good MVC system, I'd recommend Catalyst. Cat supports
> lots of Model classes: the one usually used in the examples is based on
> DBIx::Class. DBIC is, I think, exactly what you *aren't* looking for:
> while it will generate DDL for you, and it gives you an OO interface to
> the database, it will only do so after you've set up a 'schema' which
> ends up mostly equivalent to an SQL schema.
Another person wrote: "You may want to look at DBIx::Class which is a
mature and feature-rich Perl ORM that lets you generate your model
classes automatically from your database schema or vice-versa."
So, DBIC need the "schema" section in addition to the class-
definition. I understand.
> Perhaps what you want is Catalyst::Model::KiokuDB? I've never used it,
> with or without Catalyst[0], but Florian (who appears to be the current
> maintainer) certainly knows what he's doing.
ok, will take a look.
Maybe I ask a different way: which existent framework (or ORM) come
nearest to "Model-Centric"?
> Ben
>
> [0] and probably wouldn't want to. IMHO if you're using an RDBMS just to
> serialise a handful of objects you're wasting it: the whole point of SQL
> is it lets you ask questions you weren't expecting when you put the data
> in the database. If all the important bits are stuffed into blobs you
> might as well have been using BDB or something simple like that from the
> start. (In fact, I see KiokuDB supports BDB as a backend...)
I want to use an sql db, in order to be able to switch to other
frameworks, languages etc.
--
http://lazaridis.com