Re: Reg:Connection Object - Mailing list pgsql-admin

From sandhya
Subject Re: Reg:Connection Object
Date
Msg-id 003501c5af76$78257690$cd00000a@amiindiahjwbgh
Whole thread Raw
In response to Reg:Connection Object  ("sandhya" <sandhyar@amiindia.co.in>)
Responses Re: Reg:Connection Object
List pgsql-admin
I am using normal C-Functions,In one function i will make connection with
the database.This connection object i need to get in my all other functions
where i will do the other operations like creating a table ,altering a table
in their respective functions.So..There is no need for me to ask the user to
pass the user ,password,database name in all other functions.Pls suggest me

-Sandhya

----- Original Message -----
From: "Michael Fuhr" <mike@fuhr.org>
To: "sandhya" <sandhyar@amiindia.co.in>
Cc: "postgre" <pgsql-admin@postgresql.org>
Sent: Thursday, September 01, 2005 7:16 PM
Subject: Re: [ADMIN] Reg:Connection Object


> On Thu, Sep 01, 2005 at 04:12:17PM +0530, sandhya wrote:
> > 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.
>
> What functions?  You didn't say what language you're using, nor
> whether you're writing client-side code or server-side code.
>
> BTW, this thread seems off-topic for pgsql-admin because it doesn't
> concern PostgreSQL administration.  You're more likely to get help
> in pgsql-interfaces or pgsql-general, or in one of the more specific
> lists like pgsql-jdbc or pgsql-php if you're using one of those
> interfaces.
>
> --
> Michael Fuhr


pgsql-admin by date:

Previous
From: GRUbY
Date:
Subject: Re: pg_dumpall problem - duplicated users
Next
From: Michael Fuhr
Date:
Subject: Re: Reg:Connection Object