limbo/bindings/java
김선우 7409779be7 Refactor to use composition instead of inheritance
- Update JDBC4Connection to implement Connection directly
- JDBC4Connection holds LimboConnection as a member field
2025-02-07 19:49:16 +09:00
..
example Rename package to tursodatabase 2025-02-06 20:54:13 +09:00
gradle/wrapper Add support Java bindings 2025-01-05 10:28:05 +02:00
rs_src Implement bindXXX functions on rust and java side 2025-02-07 11:25:23 +09:00
src Refactor to use composition instead of inheritance 2025-02-07 19:49:16 +09:00
.gitignore Add makefile commands to build for mac and windows 2025-02-02 12:24:04 +09:00
build.gradle.kts Nit 2025-02-07 13:50:00 +09:00
Cargo.toml Add connect function for creating connections from limbo db 2025-01-18 09:09:36 +09:00
gradlew Add support Java bindings 2025-01-05 10:28:05 +02:00
gradlew.bat Add support Java bindings 2025-01-05 10:28:05 +02:00
Makefile Merge 'bindings/java: Change logger dependency ' from Kim Seon Woo 2025-02-03 09:21:26 +02:00
README.md Refactor to use composition instead of inheritance 2025-02-07 19:49:16 +09:00
settings.gradle.kts Add support Java bindings 2025-01-05 10:28:05 +02:00

Limbo JDBC Driver

The Limbo JDBC driver is a library for accessing and creating Limbo database files using Java.

Project Status

The project is actively developed. Feel free to open issues and contribute.

To view related works, visit this issue.

How to use

Currently, we have not published to the maven central. Instead, you can locally build the jar and deploy it to maven local to use it.

Build jar and publish to maven local

$ cd bindings/java 

# Please select the appropriate target platform, currently supports `macos_x86`, `macos_arm64`, `windows`
$ make macos_x86

# deploy to maven local 
$ make publish_local

Now you can use the dependency as follows:

dependencies {
    implementation("org.github.tursodatabase:limbo:0.0.1-SNAPSHOT")
}

Code style

  • Favor composition over inheritance. For example, JDBC4Connection doesn't implement LimboConnection. Instead, it includes LimboConnection as a field. This approach allows us to preserve the characteristics of Limbo using LimboConnection easily while maintaining interoperability with the Java world using JDBC4Connection.