Skip to content

About

JVM binding for Minigraf — bi-temporal graph database

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

minigraf-java

Java and Kotlin bindings for Minigraf. Run bi-temporal Datalog queries in an embedded, single-file graph database.

Installation

Gradle (Kotlin DSL)

dependencies {
    implementation("io.github.project-minigraf:minigraf-jvm:2.0.12")
}

Maven

<dependency>
    <groupId>io.github.project-minigraf</groupId>
    <artifactId>minigraf-jvm</artifactId>
    <version>2.0.12</version>
</dependency>

Quick start

import uniffi.minigraf_ffi.MiniGrafDb

val db = MiniGrafDb.openInMemory()
val result = db.execute("""(transact [[:alice :name "Alice"]])""")
println(result)  // {"transacted":<tx id>}

Building from source

Requires Rust stable toolchain and JDK 17.

cargo build --release
cd java
./gradlew generateKotlinBindings copyLocalNative test

Cascade release

After a core release, the cascade sends this repository a core-release event. The workflow on main selects main for 3.x and v2.x for 2.x. It pins the exact core version, builds the native libraries and tests the JAR, then commits and tags the prepared source and publishes the fat JAR to Maven Central.

Retry from main with gh workflow run release.yml --ref main -f version=<full-tag>. Do not delete or move the tag. For details on retries and partial publication, see the release guide on the default branch.

License

MIT OR Apache-2.0

About

JVM binding for Minigraf — bi-temporal graph database

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages