Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Rose::DB and DBIx

by siracusa (Friar)
on Jan 19, 2007 at 17:16 UTC ( [id://595500]=note: print w/replies, xml ) Need Help??


in reply to Re: Rose::DB and DBIx
in thread Rose::DB and DBIx

That summary is a bit out of date. Both RDBO and DBIC have improved a lot since then.

Replies are listed 'Best First'.
Re^3: Rose::DB and DBIx
by DBX (Pilgrim) on Mar 25, 2008 at 20:30 UTC
    After considering DBIx::Class, Rose::DB was recommended to me. One thing I can't figure out is why there is the requirement that tables have a primary key. I'm working with a legacy DB in which many tables do not have a primary key. Is Rose::DB simply unusable? Or is there a workaround I haven't found yet?

      In RDBO, each object represents a single, uniquely identified row in a table. Therefore, there must be some way to uniquely identify a row in a table. Any unique key will do, even if it's not specified as a primary key constraint in the database. But RDBO will need something that it calls a primary key. You can pick one of the unique keys and tell RDBO that it is the primary key, for example.

      (You can actually create RDBO-derived classes that front tables without unique or primary keys, but the load() and save() object methods will not work as designed, for what I hope are obvious reasons.)

        Can Rose::DB use a primary key that spans multiple columns? Also, does anyone know if of a support matrix comparing supported features of roseDB with DBIC and CDBI?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://595500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found