Re: Using CDBI with an ORDBMS

[prev] [thread] [next] [Date index for 2005/04/30]

From: Tony Bowden
Subject: Re: Using CDBI with an ORDBMS
Date: 09:12 on 30 Apr 2005
On Fri, Apr 29, 2005 at 08:36:27PM -0700, Randal L. Schwartz wrote:
> I don't think CDBI does this inherently, at least not in anything I've
> seen.

It doesn't.

> Given a row returned from a Pg query, you can map it to its table
> name with:
> SELECT relname
> FROM pg_class
> WHERE relfilenode = (SELECT tableoid FROM $yourrow)
> So, if you can include tableoid as a return value, you can do the
> mapping and reblessing as needed.

You should be able to set up a fairly straightforward select trigger to
do this automagically, and rebless accordingly.

Tony

Using CDBI with an ORDBMS
Michael Nachbaur 00:16 on 30 Apr 2005

Re: Using CDBI with an ORDBMS
merlyn (Randal L. Schwartz) 03:36 on 30 Apr 2005

Re: Using CDBI with an ORDBMS
Tony Bowden 09:12 on 30 Apr 2005

Re: Using CDBI with an ORDBMS
David Christensen 12:06 on 30 Apr 2005

Re: Using CDBI with an ORDBMS
merlyn (Randal L. Schwartz) 17:44 on 30 Apr 2005

Generated at 10:24 on 04 May 2005 by mariachi v0.52