Re: how to get JDBC driver version from command line

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: how to get JDBC driver version from command line
Дата
Msg-id 551D8396.90907@hogranch.com
обсуждение исходный текст
Ответ на how to get JDBC driver version from command line  (akshunj <rickjackson001@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: akshunj
Дата:
Сообщение: how to get JDBC driver version from command line
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: how to get JDBC driver version from command line