[CDBI] Working with tables without primary keys?

Bill Moseley moseley at hank.org
Mon Nov 7 23:37:29 GMT 2005

On Mon, Nov 07, 2005 at 05:24:15PM -0600, Eamon Daly wrote:
> Hi, all. I couldn't find anything in the Class::DBI CPAN
> pages or on the Wiki, so perhaps one of you can provide a
> pointer. What's the Right Way to work with tables lacking
> primary keys?
> __PACKAGE__->columns(All => qw/foo_id foo_name/);

You are defining foo_id as the primary key there.

Bill Moseley
moseley at hank.org

More information about the ClassDBI mailing list