comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: passing hand arround a db connection
Date: Thu, 26 Aug 2004 13:55:59 -0400
Date: 2004-08-26T13:55:59-04:00	[thread overview]
Message-ID: <ftpXc.22667$_H5.680974@news20.bellglobal.com> (raw)
In-Reply-To: <2p2mc0Fg0menU1@uni-berlin.de>

Matthias Teege wrote:
> Stephen Leake <stephen_leake@acm.org> wrote:
> 
>>Ok. I looked for APQ2 on Google; found lots of interesting things, but
>>no Ada code. Do you have a link?
> 
> Sorry, the home of apq is http://home.cogeco.ca/~ve3wwg/software.html
> 
> Matthias

For the record, I have recommended that Matthias
create and initialize the connection with the
Connection_Type object at the main program
level. Then pass the Connection_Type
(or containing record) as user data to
the widgets.

You really don't want to create and
connect to the database for each and
every query, because of the connecting to
the database overhead and time. The
APQ Connection_Type object can be re-used
and shared amongst several queries (using
the Query_Type object).
-- 
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg



      reply	other threads:[~2004-08-26 17:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-24  9:32 passing hand arround a db connection matthias-dated
2004-08-24 12:51 ` Stephen Leake
2004-08-24 15:03   ` Matthias Teege
2004-08-25  1:32     ` Stephen Leake
2004-08-25  5:28       ` Matthias Teege
2004-08-26 17:55         ` Warren W. Gay VE3WWG [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox