Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^6: Rose::DB and DBIx

by Anonymous Monk
on Apr 08, 2008 at 17:26 UTC ( [id://679023]=note: print w/replies, xml ) Need Help??


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

Well, I found the answer to the first part of my question tucked away in the tutorial:
The table must have a primary key, and may have zero or more unique keys. The primary key and each unique key may contain multiple columns.

Also, if you are desparate there is even a workaround for not having a primary key:
If the table has a multi-column primary key or does not use a column type that supports auto-generated values, you can define a custom primary key generator function using the primary_key_generator method of the Rose::DB::Object::Metadata-derived object that contains the metadata for this class.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found