From: | Steven Schlansker <stevenschlansker(at)gmail(dot)com> |
---|---|
To: | Dave Cramer <pg(at)fastcrypt(dot)com> |
Cc: | Thomas Kellerer <spam_eater(at)gmx(dot)net>, List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: A new JDBC driver... |
Date: | 2013-03-12 18:10:50 |
Message-ID: | BA614B03-D340-40F6-BD98-5C17913F7650@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Mar 12, 2013, at 11:04 AM, Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
> Ya, It occurred to me as well if you are using netty it requires another jar.
>
> A bit unorthodox...
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
To my understanding, with a Maven build process it is relatively easy to produce both a
"unmodified" jar which is appropriate for use in Maven projects and a "shaded" jar which could
be appropriate for use in tools / non-Maven-aware projects:
http://maven.apache.org/plugins/maven-shade-plugin/
This way you can have the best of both worlds.
>
> On Tue, Mar 12, 2013 at 1:39 PM, Thomas Kellerer <spam_eater(at)gmx(dot)net> wrote:
> Kevin Wooten wrote on 12.03.2013 02:19:
> So… I did a crazy thing… I created an entirely new JDBC driver.
>
> (For those who care there's an actual question at the bottom… this
> isn't just bragging)
>
> I'd love it if some folks in the know could take a look at my code
> and see if it stirs up any ideas on integration or just makes you
> want to jump off a bridge.
>
>
> It does sound very nice, thanks very much for the effort!
>
> I didn't look at the code, but one thing I noticed when trying the driver is that it requires a bunch of other libraries which is highly unusual in the JDBC "world". Usually the JDBC driver jar is self contained.
>
> When I tried it with my SQL tool (SQL Workbench/J) I got the following exception when connecting:
>
>
> java.lang.NullPointerException
> at com.impossibl.postgres.protocol.v30.ProtocolImpl.sendStartup(ProtocolImpl.java:168)
> at com.impossibl.postgres.protocol.v30.StartupCommandImpl.execute(StartupCommandImpl.java:107)
> at com.impossibl.postgres.protocol.v30.ProtocolImpl.execute(ProtocolImpl.java:139)
> at com.impossibl.postgres.system.BasicContext.start(BasicContext.java:151)
> at com.impossibl.postgres.system.BasicContext.init(BasicContext.java:110)
> at com.impossibl.postgres.jdbc.PSQLDriver.connect(PSQLDriver.java:56)
> at com.impossibl.postgres.jdbc.PSQLDriver.connect(PSQLDriver.java:22)
>
> Regards
> Thomas
>
>
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
From | Date | Subject | |
---|---|---|---|
Next Message | Mikko Tiihonen | 2013-03-12 18:11:55 | Re: A new JDBC driver... |
Previous Message | Dave Cramer | 2013-03-12 18:04:23 | Re: A new JDBC driver... |