Re: libpq++ : Disconnect a DB - Mailing list pgsql-general

From Renaud Tthonnart
Subject Re: libpq++ : Disconnect a DB
Date
Msg-id 3AA4ADC7.5708A651@amwdb.u-strasbg.fr
Whole thread Raw
In response to libpq++ : Disconnect a DB  (Renaud Tthonnart <thonnart@amwdb.u-strasbg.fr>)
List 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


pgsql-general by date:

Previous
From: Frank Nijenhuis
Date:
Subject: remote dumping of databases
Next
From: "Stefan Waidele jun."
Date:
Subject: Re: interval question