Re: how to get JDBC driver version from command line - Mailing list pgsql-jdbc

From John R Pierce
Subject Re: how to get JDBC driver version from command line
Date
Msg-id 551D8396.90907@hogranch.com
Whole thread Raw
In response to how to get JDBC driver version from command line  (akshunj <rickjackson001@gmail.com>)
List pgsql-jdbc
On 4/2/2015 9:26 AM, akshunj wrote:
> Is there a way to get the JDBC driver version from the command line? I'd
> like to make the name generic for various administrative reasons.
>
> I suspect this could be done using something along the lines of:
>
> java -cp ./postgresql.jdbc4.jar org.postgresql.Driver -version
>
> I'm not fluent in Java, so I would appreciate any help.

pretty sure you'd need a java application that calls the
getMajorVersion() and getMinorVersion() methods of the driver. don't
think there's any way to do that from a command line.



--
john r pierce, recycling bits in santa cruz



pgsql-jdbc by date:

Previous
From: akshunj
Date:
Subject: how to get JDBC driver version from command line
Next
From: Kris Jurka
Date:
Subject: Re: how to get JDBC driver version from command line