diff --git a/README.md b/README.md index d2ce72d..2400008 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,17 @@ LibSQL [JDBC](https://en.wikipedia.org/wiki/JDBC_driver) is a library for access - It supports prepared statements, database metadata, resultsets, data types and most of other JDBC features - It is included in [DBeaver](https://github.com/dbeaver/dbeaver) and [CloudBeaver](https://github.com/dbeaver/cloudbeaver) as default LibSQL driver. However, it can be used in any other products/frameworks which rely on JDBC API +## Usage + +JDBC URL format: `jdbc:dbeaver:libsql:` +Server URL is a full URL including schema and port. For example: +- `jdbc:dbeaver:libsql:http://localhost:1234` +- `jdbc:dbeaver:libsql:https://test-test.turso.io` + +Token based authentication supported in version 1.0. Pass token value as password, leave the username empty. + +Driver class name: `com.dbeaver.jdbc.driver.libsql.LibSqlDriver` + ## License Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) @@ -21,7 +32,7 @@ Download from Maven Central or from the releases page. com.dbeaver.jdbc com.dbeaver.jdbc.driver.libsql - 1.0.0 + 1.0.1 ``` diff --git a/com.dbeaver.jdbc.driver.libsql/pom.xml b/com.dbeaver.jdbc.driver.libsql/pom.xml index f6b58eb..c3a1254 100644 --- a/com.dbeaver.jdbc.driver.libsql/pom.xml +++ b/com.dbeaver.jdbc.driver.libsql/pom.xml @@ -7,12 +7,14 @@ com.dbeaver.jdbc.libsql jdbc-libsql - 1.0.0-SNAPSHOT + 1.0.1-SNAPSHOT ../pom.xml com.dbeaver.jdbc.driver.libsql - 1.0.1-SNAPSHOT DBeaver LibSQL JDBC Driver + LibSQL JDBC driver + https://github.com/dbeaver/dbeaver-jdbc-libsql + eclipse-plugin diff --git a/com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlConstants.java b/com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlConstants.java index 7f6478f..d1b1c85 100644 --- a/com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlConstants.java +++ b/com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlConstants.java @@ -25,6 +25,7 @@ public class LibSqlConstants { public static final int DRIVER_VERSION_MAJOR = 1; public static final int DRIVER_VERSION_MINOR = 0; + public static final int DRIVER_VERSION_MICRO = 1; public static final String DRIVER_NAME = "LibSQL"; public static final String DRIVER_INFO = "DBeaver LibSQL JDBC driver"; diff --git a/com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlDriver.java b/com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlDriver.java index 57c0ab7..4df30ca 100644 --- a/com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlDriver.java +++ b/com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlDriver.java @@ -72,6 +72,10 @@ public int getMinorVersion() { return LibSqlConstants.DRIVER_VERSION_MINOR; } + public int getMicroVersion() { + return LibSqlConstants.DRIVER_VERSION_MICRO; + } + @Override public boolean jdbcCompliant() { return true; @@ -87,6 +91,7 @@ public String getDriverName() { } public String getFullVersion() { - return getMajorVersion() + "." + getMinorVersion() + " (" + LibSqlConstants.DRIVER_INFO + ")"; + return getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() + + " (" + LibSqlConstants.DRIVER_INFO + ")"; } } diff --git a/pom.xml b/pom.xml index bd6bab5..a6ee573 100644 --- a/pom.xml +++ b/pom.xml @@ -6,9 +6,12 @@ 4.0.0 com.dbeaver.jdbc.libsql jdbc-libsql + 1.0.1-SNAPSHOT + pom DBeaver LibSQL JDBC Project - 1.0.0-SNAPSHOT + LibSQL JDBC driver + https://github.com/dbeaver/dbeaver-jdbc-libsql com.dbeaver.common