From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f51c726168257d12 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!wns13feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: passing hand arround a db connection References: <2p0g8gFfi977U1@uni-berlin.de> <2p13moFfi0mhU1@uni-berlin.de> <2p2mc0Fg0menU1@uni-berlin.de> In-Reply-To: <2p2mc0Fg0menU1@uni-berlin.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 26 Aug 2004 13:55:59 -0400 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1093542859 198.96.223.163 (Thu, 26 Aug 2004 13:54:19 EDT) NNTP-Posting-Date: Thu, 26 Aug 2004 13:54:19 EDT Organization: Bell Sympatico Xref: g2news1.google.com comp.lang.ada:3039 Date: 2004-08-26T13:55:59-04:00 List-Id: Matthias Teege wrote: > Stephen Leake 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