From: Rob Brown-Bayliss <rob@ZOOstation.cc>
To: PostgreSQL <pgsql-interfaces@postgreSQL.org>
Subject: creating a db with libpq
Date: Wed, 23 Feb 2000 21:45:38 +1300
Message-ID: <20000223214538.A729@ZOOstation.cc> (raw)
Hi all,
I am embarking on an app that I want to check for the existance of a
postgesql database and if it's not there create it. If it is there then
check the status of tables, fields etc and modify as needed.
The checking is easy, I attempt to estabilsh a connection and preaty
soon know if it's there or not. The problem is I do not know how to
create one with libpq...
Can any one point me in the right direction? And while your at it some
tips for comparing the DB to what it should be...
If you are wondering why I want to check the DB, I imagine it changeing
as the program develops. By having the app check and make chages to the
DB I remove one possible souce for errors, and make it easier for end
users...
Rob Brown-Bayliss
---====<*>====---
live from ZOOstation
http://www.ZOOstation.cc
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: rob@ZOOstation.cc
Subject: Re: creating a db with libpq
In-Reply-To: <20000223214538.A729@ZOOstation.cc>
* 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