Re: How much of data constraints on database is enough?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: sfpug(at)postgresql(dot)org
Cc: Drew Wilson <amw(at)apple(dot)com>, Miho Ishikura <mihoishikura(at)gmail(dot)com>
Subject: Re: How much of data constraints on database is enough?
Date: 2008-01-16 18:10:03
Message-ID: 200801161010.03629.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: sfpug

Drew,

> All this being said, I am not happy w/ having to maintain two parallel
> sets of constraints. It violates the Don't Repeat Yourself principle.
> I'd like some DDL to generate schema definitions with constraints as
> well as be picked up by the Rails application code.

That would be nice. Good luck convincing the Rails people, who oppose even
foreign keys.

--
Josh Berkus
PostgreSQL @ Sun
San Francisco

In response to

Responses

Browse sfpug by date

  From Date Subject
Next Message Miho Ishikura 2008-01-16 18:17:29 Sun Microsystems buys MySQL
Previous Message Webb Sprague 2008-01-16 18:04:38 Re: How much of data constraints on database is enough?