Re: [PATCH] Expose URL property in BaseDataSource

From: Loïc PÉRON <loic(dot)peron(at)bigfoot(dot)com>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [PATCH] Expose URL property in BaseDataSource
Date: 2013-03-12 11:20:12
Message-ID: CAFKiveQ8hnDpZZQ8_xbOjc3rCjxB8dkAJZ8nA=rSm7FH0RKh=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

2013/3/11 Dave Cramer <pg(at)fastcrypt(dot)com>:
> Looking at the spec these are not part of the Datasource API ? Or am I
> mistaken ?

No they are not, but in fact no connection property is mandated by the
spec regarding DataSources.

It is simply a convenient way of configuring the DataSource, similar
to the configuration through DriverManager: url+user+pass

As the URL parsing is already present in Driver, and the URL building
in BaseDataaSource, I just connected url parsing to the BaseDataSource
attributes.

We currently use Oracle, HSQLDB and Postgresql, which is the only one
not exposing a URL property for datasources.

--
Loïc PÉRON
phone:(33) 683 880 177
mailto:loic.peron<at>bigfoot.com

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Patric Bechtel 2013-03-12 11:32:44 Re: A new JDBC driver...
Previous Message John Lister 2013-03-12 10:54:40 Re: A new JDBC driver...