postgres-connect

Name

postgres-connect -- Connect to Postgres95 server

Type: function

Synopsis

postgres-connect( database host port opts tty, cnxn);

Arguments

database

An instance of <string>

host

An instance of <string>

port

An instance of <string>

opts

An instance of <string>

tty

An instance of <string>

Return Values

cnxn

An instance of <pg95-connection>

Description

This function creates a connection to the PG95 database with the name database. If the connection cannot be established (ie, because of network, installation, or authentication problems), an error is signalled.

(postgres-connect "foo") a <pg95-connection>

(postgres-connect "bar" host: "dbsrv.bar.com") a <pg95-connection>