Re: libpq++ : Disconnect a DB

From: Renaud Tthonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr>
To: Jose Manuel Lorenzo Lopez <jose-manuel(dot)lorenzo-lopez(at)conti(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: libpq++ : Disconnect a DB
Date: 2001-03-06 09:28:40
Message-ID: 3AA4ADC7.5708A651@amwdb.u-strasbg.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jose Manuel Lorenzo Lopez wrote:

> Renaud Tthonnart schrieb:
> >
> > Good morning everyone,
> >
> > By declaring a PgDatabase variable like this, I know that I make a
> > connection to the DB 'test'
> >
> > PgDatabase data("dbname = test");
> >
> > How to end connection?
> > By making this?
> >
> > delete data;
>
> Hello Renaud,
>
> I think yes, because I guess there is an implicit call to disconnect
> your object by calling the destructor. But I am not sure, may be
> any of the developers in this list is able to confirm my point of
> view.
>
> Best Regards / Un saludo / Mit freundlichen Grüßen / Cordiali Saluti
>
> José Manuel Lorenzo López
>

I am thinking just like you!
Thank you to strengthen my intuition

Renaud THONNART

Browse pgsql-general by date

  From Date Subject
Next Message dev 2001-03-06 11:56:03 Re: remote dumping of databases
Previous Message Frank Nijenhuis 2001-03-06 08:55:05 remote dumping of databases