Received: from phalanx.phalanx.net (phalanx.phalanx.net [208.205.224.129]) by hub.org (8.9.3/8.9.3) with ESMTP id TAA19132 for ; Thu, 12 Aug 1999 19:19:25 -0400 (EDT) (envelope-from mdz@phalanx.phalanx.net) Received: from phalanx.net (nat37.aspentec.com [208.201.90.37]) by phalanx.phalanx.net (8.8.2/8.8.2) with ESMTP id SAA05164 for ; Thu, 12 Aug 1999 18:33:45 -0400 (EDT) Sender: #postgres@phalanx.phalanx.net Message-ID: <37B3564B.C2F7CD0@phalanx.net> Date: Thu, 12 Aug 1999 23:18:35 +0000 From: Mark Dzmura X-Mailer: Mozilla 4.51 [en] (X11; U; Linux 2.2.7 i686) X-Accept-Language: en MIME-Version: 1.0 To: "pgsql-interfaces@postgreSQL.org" Subject: JDBC query... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Folks: I would like to extend my (JDBC-using) software to be able to present the user with a list of available databases from a chosen database server, to create new databases, and to create new tables... My reading of the JDBC 1.0 and 2.0 specs presents a picture of an API which seems to be of a "read only" nature regarding database metadata - I can't find ways to create, delete, and modify above the level of SQL queries against tables... In that regard, my questions address both JDBC itself, and the Postgres JDBC driver implementation. Regarding JDBC, 1. Is there an object of higher "scope" than the Connection object, which is bound to a specific database?? 2. Is there a Database object, which provides methods to create, destroy, and modify the schemas of tables ?? Or can I do SQL "CREATE TABLE" and "DROP TABLE" operations using some version of Statement which doesn't return a ResultSet ?? Finally, at what level does the Postgres JDBC driver support JDBC (regarding my questions and in general) ?? Thanks, Mark Dzmura -- )))) This email routed via a wireless gateway!! ((((