Subject: | Facility to declare a model without primary key |
It would be great to have the facility to declare a model that does not
have any primary key at all.
This could be very helpful for old DB schemas that have tables without
primary keys.
The syntax could look like the following:
package MyModel;
use Coat::Persistent primary_key => undef;
has other_id => (isa => 'Int');
has name => (isa => 'Str');
In this model, "other_id" is a foreign key and is sufficient, the table
does not have a primary key.