libpq++ : Disconnect a DB

From: Renaud Tthonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: libpq++ : Disconnect a DB
Date: 2001-03-02 14:16:42
Message-ID: 3A9FAB4A.E34B72A7@amwdb.u-strasbg.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Good afternoon 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;
data = NULL;

regards, Renaud THONNART

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mitch Vincent 2001-03-02 14:21:43 Re: Want to learn the Postgresql database system
Previous Message John Madden 2001-03-02 14:03:24 Re: Perl & DBI/DBD::Pg confusion with finish