pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sandhya <sandhyar@amiindia.co.in>
To: postgre <pgsql-admin@postgresql.org>
Cc: sandhya <sandhyar@amiindia.co.in>
Subject: Reg:Connection Object
Date: Thu, 1 Sep 2005 16:12:17 +0530
Message-ID: <01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh> (raw)

Hi,
    How to pass connection object across the functions.So that there is no need for me to connect to postgres database in each and every function.

For Ex:If i have say 3 functions:

One function i use to connect to the database.

In the other function, if i want to creat a table ...I need this persistant connection object which holds the details of the dbname and user etc.

Pls..help me in solving this.
Thank you very much

Regards,
Sandhya R

view thread (7+ messages)  latest in thread

Message-ID: <01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh>
Permalink:  ../01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh/
Also on:    postgresql.org/message-id/01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh

 · 

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: sandhyar@amiindia.co.in
  Subject: Re: Reg:Connection Object
  In-Reply-To: <01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh>
  References: <01ad01c5aee1$dd839570$cd00000a@amiindiahjwbgh>

* 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