Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbeaver/pro#3589 Maven central #2

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>`
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)
Expand All @@ -21,7 +32,7 @@ Download from Maven Central or from the releases page.
<dependency>
<groupId>com.dbeaver.jdbc</groupId>
<artifactId>com.dbeaver.jdbc.driver.libsql</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
</dependency>
</dependencies>
```
6 changes: 4 additions & 2 deletions com.dbeaver.jdbc.driver.libsql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
<parent>
<groupId>com.dbeaver.jdbc.libsql</groupId>
<artifactId>jdbc-libsql</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>com.dbeaver.jdbc.driver.libsql</artifactId>
<version>1.0.1-SNAPSHOT</version>
<name>DBeaver LibSQL JDBC Driver</name>
<description>LibSQL JDBC driver</description>
<url>https://github.com/dbeaver/dbeaver-jdbc-libsql</url>

<packaging>eclipse-plugin</packaging>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -87,6 +91,7 @@ public String getDriverName() {
}

public String getFullVersion() {
return getMajorVersion() + "." + getMinorVersion() + " (" + LibSqlConstants.DRIVER_INFO + ")";
return getMajorVersion() + "." + getMinorVersion() + "." + getMicroVersion() +
" (" + LibSqlConstants.DRIVER_INFO + ")";
}
}
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.dbeaver.jdbc.libsql</groupId>
<artifactId>jdbc-libsql</artifactId>
<version>1.0.1-SNAPSHOT</version>

<packaging>pom</packaging>
<name>DBeaver LibSQL JDBC Project</name>
<version>1.0.0-SNAPSHOT</version>
<description>LibSQL JDBC driver</description>
<url>https://github.com/dbeaver/dbeaver-jdbc-libsql</url>

<parent>
<groupId>com.dbeaver.common</groupId>
Expand Down