Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 890086309F0 for ; Thu, 22 Jul 2010 06:02:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 51321-07 for ; Thu, 22 Jul 2010 09:02:47 +0000 (UTC) X-Greylist: delayed 00:08:27.652132 by SQLgrey-1.7.6 Received: from sasl.smtp.pobox.com (a-pb-sasl-quonix.pobox.com [208.72.237.25]) by mail.postgresql.org (Postfix) with ESMTP id 9217363438E for ; Thu, 22 Jul 2010 06:02:48 -0300 (ADT) Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B9786C60E6; Thu, 22 Jul 2010 04:54:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:message-id:mime-version:content-type; s=sasl; bh=Xsq aQ186vshBqScqvF906osU/+U=; b=wgD5FAjQ+jbwx5TLVrNiVLq5KLqAlvVr2E8 OnQSxckpfXsa8TXpx5ckzfxe6ThIif19o0IIcPqq2cUeQUGc8csv58w+Hsnuxetz FDZRBeHZoaWnlKuWaN4in8Lo7h4cwzQ+gfSeaWelpgom50N09fQHSXTQaIT1muq7 nVNHjDAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to:cc :subject:message-id:mime-version:content-type; q=dns; s=sasl; b= GbnETL7X8ckk6d8TSW8LF5FiwzjuZs1zIZOOjKnJWTYF2NTUbe/Ef2pwPHvxShLg w58xTEg5dgwflDuEw7lFlup9PRGT4TV4llDm/hoWJZ4b7lXnxcdnARZ0sK0hI+PX U0cXClFVJxY0n9ds+VTlu/xWhSftzB1QYw6sp5LTNxY= Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id A1CB2C60E5; Thu, 22 Jul 2010 04:54:17 -0400 (EDT) Received: from timac.local (unknown [12.157.240.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id F3D70C60E0; Thu, 22 Jul 2010 04:54:10 -0400 (EDT) Date: Thu, 22 Jul 2010 01:54:02 -0700 From: Tim Bunce To: pgsql-jdbc@postgresql.org Cc: Tim Bunce Subject: PostgreSQL JDBC vs jxDBCon as a model for other language implementations Message-ID: <20100722085402.GB80399@timac.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Pobox-Relay-ID: B5F90C5A-956E-11DF-AABC-9056EE7EF46B-13888548!a-pb-sasl-quonix.pobox.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.51 tagged_above=-10 required=5 tests=BAYES_05=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/74 X-Sequence-Number: 20739 Hi. I'm building an API for database access for a non-Java language. I'm modeling the API very closely on JDBC. I want to make it as easy as possible for other developers to implement drivers for different database systems. I came across the jxDBCon project (http://jxdbcon.sourceforge.net/) which seems to be a good model: "jxDBCon a framework to ease the development JDBC drivers. By using it you can concentrate on the tasks specific to your DBMS and benefit from the generic solutions provided by jxDBCon. jxDBCon also contains a featureful driver implementation for PostgreSQL" They also say: "Actually the framework was created for the PostgreSQL driver, as I was disappointed with the compatibility of the existing driver which ships with the database distribution" The last commit to jxDBCon was almost 5 years ago, whereas the PostgreSQL JDBC seems well maintained. The PostgreSQL JDBC drivers seems to have a good Abstract* class hierarchy, which is what I'm looking for. There does seem to be some PostgreSQL-specific logic in those abstract classes though, like appendArray in AbstractJdbc4Connection. I'm wondering how the jxDBCon and PostgreSQL JDBC drivers compare. I'd appreciate it if someone could give me some background information about their history and the relationship between the two drivers. Is the PostgreSQL JDBC driver class hierarchy, and implementations of the abstract classes, a good foundation to build a framework to ease the development JDBC drivers for multiple databases? Tim.