Skip Menu |

This queue is for tickets about the Coat-Persistent CPAN distribution.

Report information
The Basics
Id: 47772
Status: open
Priority: 0/
Queue: Coat-Persistent

People
Owner: Nobody in particular
Requestors: sukria [...] sukria.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.210
Fixed in: (no value)



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.