Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script - Mailing list pgsql-interfaces

From Lamar Owen
Subject Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script
Date
Msg-id 379737D7.FFF501F8@wgcr.org
Whole thread Raw
In response to invalid command name "pg_connect" on tcl/tk script  (Ahmad Munif <munif@dnet.net.id>)
List pgsql-interfaces
Ahmad Munif wrote:
> what's going on ?
> 
> any one can help me to give me sample script to connect
> to postgresql back end with tcl/tk ?

Read the pgaccess script -- in particular, the section that loads
libpgtcl.so. This whole script is an excellent example of accessing
PostgreSQL from tcl/tk. If you do not have the pgaccess script, download
the pgaccess tarball from ftp://www.flex.ro/pub/pgaccess, or from my
server at http://206.74.232.196/postgres.  You will be glad you looked
over this script.

Something like:

load libpgtcl.so

THEN you can use pg_connect et al.

Lamar Owen
WGCR Internet Radio


pgsql-interfaces by date:

Previous
From: Hugh Lawson
Date:
Subject: Re: [INTERFACES] [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL
Next
From: Eric Marsden
Date:
Subject: Re: [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL