pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mitch Pirtle <mitchy@spacemonkeylabs.com>
To: aplst@xs4all.nl
Cc: pgsql-admin@postgresql.org
Subject: Re: tracking db changes / comparing databases
Date: Wed, 18 Aug 2004 11:25:54 -0400
Message-ID: <41237502.7070902@spacemonkeylabs.com> (raw)
In-Reply-To: <12975.62.4.75.26.1092838173.squirrel@webmail.xs4all.nl>
References: <12975.62.4.75.26.1092838173.squirrel@webmail.xs4all.nl>

aplst@xs4all.nl wrote:

>How do you share the data-definitions of your project(s) when they change
>(template1) ? Do you create all system-tables at pg_init runtime, and thus
>diff the C-source?
>  
>

The best approach IMHO is to use cvs and diff.  For a more PHP-centric 
approach, you could look at ADOdb:

    http://adodb.sf.net/

Does a lot more than just abstract the database, also provides caching 
of query results, handy utilities for building form elements, etc.  But 
the most topical feature is the inclusion of the data dictionary and 
ADOdb XML Schema (AXMLS):

    http://phplens.com/lens/adodb/docs-datadict.htm

Here you can use database-agnostic XML markup (and also reverse-engineer 
schemas).  You can basically use this to migrate your schemas.  I am 
looking into using this for the next major release of Mambo CMS for 
upgrades and installs.

HTH,

-- Mitch




view thread (4+ messages)  latest in thread

Message-ID: <41237502.7070902@spacemonkeylabs.com>
Permalink:  ../41237502.7070902@spacemonkeylabs.com/
Also on:    postgresql.org/message-id/41237502.7070902@spacemonkeylabs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mitchy@spacemonkeylabs.com, aplst@xs4all.nl
  Subject: Re: tracking db changes / comparing databases
  In-Reply-To: <41237502.7070902@spacemonkeylabs.com>
  References: <12975.62.4.75.26.1092838173.squirrel@webmail.xs4all.nl> <41237502.7070902@spacemonkeylabs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox