Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

sfpug by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group