Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 6887 invoked from network); 11 Dec 2010 04:27:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Dec 2010 04:27:39 -0000 Received: (qmail 19825 invoked by uid 500); 11 Dec 2010 04:27:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 19635 invoked by uid 500); 11 Dec 2010 04:27:38 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 19628 invoked by uid 99); 11 Dec 2010 04:27:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Dec 2010 04:27:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bpendleton.derby@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Dec 2010 04:27:30 +0000 Received: by iwn40 with SMTP id 40so6607355iwn.17 for ; Fri, 10 Dec 2010 20:27:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=dQiN7h0vwglcSSYm3rNAJ0xS24h3Rh5CjpBFvX6I3Nw=; b=EC5G3P1bewLcjsPDQBVTB6fvL5gJSld0sreBuWHCwVNBWrYhAchtrkpGiV58OHhRgs Vcvpj0qlYUnqDjKOIPn0fFugfmqR7a0UkbEkLo6EVnVndK3qIDLLz1gP1iKVextbM8M3 Vty0TC2vvzjobG0jxinVoz4wyKvy+q1nL/0iY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=JLSa+9JiWQTxw1ueNhLGujFNpK6I94sREEAWf2X0A0lNg8TvMNkXhVYv/TI7xlTelM tFK/q0y1YrICkFpUmpY8yU3I2rVgxduL2IGL9yfiGlc23enc9yCcs/pYXoXAurnmf+du Zk2otkOADngcxs1csTDd3H8kV2ETapwsCFcTQ= Received: by 10.42.174.138 with SMTP id v10mr1171842icz.91.1292041629457; Fri, 10 Dec 2010 20:27:09 -0800 (PST) Received: from [192.168.0.103] (c-67-170-231-73.hsd1.ca.comcast.net [67.170.231.73]) by mx.google.com with ESMTPS id d21sm3269368ibg.9.2010.12.10.20.27.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 10 Dec 2010 20:27:08 -0800 (PST) Message-ID: <4D02FD9A.1010308@gmail.com> Date: Fri, 10 Dec 2010 20:27:06 -0800 From: Bryan Pendleton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: productizing the metadata wrapper functions References: <4D02676B.30302@oracle.com> In-Reply-To: <4D02676B.30302@oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > These wrapper functions let you use SQL to examine > database, ResultSet, and parameter metadata. The database metadata table function seems quite natural and powerful. I'm less clear on how to use the RS and Parameter functions; I looked at the examples in DERBY-4926 and DERBY-4927 but they seemed pretty artificial. Do you have more substantial examples? Also, would these latter two functions be useful in a JDBC program? Or are they something that would mostly be useful in IJ? I guess what I'm asking is: could I somehow pass an actual ResultSet object or PreparedStatement object to one of these functions? Or do they always have to take a query string and compile it themselves? Lastly, why does it take several seconds to register these functions? Is it due to how they are packaged? (That is, if they were embedded in derby.jar would the registration go faster?) I'm a bit surprised that something as seemingly trivial as registering three table functions could take that much time. Anyway, thanks very much for doing this work, and for advancing the proposal; it's quite interesting and I've been learning a lot by reading your work and following the discussions! bryan