From: | "sandhya" <sandhyar(at)amiindia(dot)co(dot)in> |
---|---|
To: | "Michael Fuhr" <mike(at)fuhr(dot)org>, "Askar Zaidi" <askar(at)mail(dot)nplindia(dot)ernet(dot)in> |
Cc: | "postgre" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Reg:Connection Object |
Date: | 2005-09-02 04:26:19 |
Message-ID: | 003501c5af76$78257690$cd00000a@amiindiahjwbgh |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)fuhr(dot)org>
To: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>
Cc: "postgre" <pgsql-admin(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2005-09-02 05:16:13 | Re: Reg:Connection Object |
Previous Message | GRUbY | 2005-09-01 19:34:22 | Re: pg_dumpall problem - duplicated users |