gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connection for Postgres from Designer


From: Jason Cater
Subject: Re: Connection for Postgres from Designer
Date: Mon, 9 Sep 2002 09:45:34 -0500

Good Morning. 

You will need to modify /usr/local/gnue/etc/connections.conf and add an
entry for each database you will use. You may need to adjust the above
path if you did not use the standard installation locations. Or, if you
installed the "Development" copy using setup-cvs.py, then the location
will likely be $HOME/gnue/etc/connections.conf .

If you have a production PostgreSQL database database called "tiger",
your connections.conf file might look like: 

  [prod]
  provider = psycopg
  host = localhost
  dbname = tiger

Now, in your forms definitions, your datasources will have a
database="prod" property. 

Note that since provider = psycopg, this connection assumes you are
using the psycopg driver at http://initd.org/Software/psycopg/ . This is
a good driver for PostgreSQL. 

See the README.databases file located in the GNUe-Common package for a
listing of all supported drivers. 

For a more technical explanation of the connections.conf file, see
gnue/common/doc/Connections.txt .

-- Jason




On Mon, 9 Sep 2002 10:29:56 +0100
David Goodenough <address@hidden> wrote:

> OK, so I abandoned the Deb file for GNUe-Common, downloaded the
> tarball and installed it.  Now Forms and Designer install and run
> properly.
> 
> Now I come to use Designer to set up a form.  I have read all the
> docs that I could find both on the web site and on my machine but when
> I get to the bit asking for a connection definition nowhere could I
> find a definition of what I need.  I am not (yet) a python speaker so
> if this is just a Python question I apologise.  I am trying to attach
> to a Postgresql DB on a Linux box, from a Linux box (initially the
> same one but eventually over IP on a LAN).  
> 
> Whats the magic incantation?
> 
> Thanks in advance
> 
> David
> 
> 
> _______________________________________________
> Gnue mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnue




reply via email to

[Prev in Thread] Current Thread [Next in Thread]