From bce87e5afb5a3df1901988a2f750a86862a2e6a1 Mon Sep 17 00:00:00 2001
From: Huahai Yang
' to read about a specific command. Starting `dtlv` without any arguments goes into the console: ```console - Datalevin (version: 0.9.9) + Datalevin (version: 0.9.10) Type (help) to see available functions. Some Clojure core functions are also available. Type (exit) to exit. @@ -231,7 +231,7 @@ You may want to launch `dtlv` in `rlwrap` to get a better REPL experience. ### Uberjar A JVM -[uberjar](https://github.com/juji-io/datalevin/releases/download/0.9.9/datalevin-0.9.9-standalone.jar) +[uberjar](https://github.com/juji-io/datalevin/releases/download/0.9.10/datalevin-0.9.10-standalone.jar) is downloadable to use as the command line tool. It is useful when one wants to run a Datalevin server and needs the efficiency of JVM's JIT, as GraalVM native image is AOT and not as efficient as JVM for long running programs, or when a @@ -239,12 +239,12 @@ pre-built native version is not available for your platform. For example, assuming your Java is newer than version 11: ```console -java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -jar datalevin-0.9.9-standalone.jar +java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -jar datalevin-0.9.10-standalone.jar ``` This will start the Datalevin REPL. ```console -java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -jar datalevin-0.9.9-standalone.jar serv -r /tmp/test-server +java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -jar datalevin-0.9.10-standalone.jar serv -r /tmp/test-server ``` Will run the Datalevin server on default port 8898, with root data path at `/tmp/test-server`. @@ -262,7 +262,7 @@ registry](https://github.com/babashka/pod-registry) within a Babashka script #!/usr/bin/env bb (require '[babashka.pods :as pods]) -(pods/load-pod 'huahaiy/datalevin "0.9.9") +(pods/load-pod 'huahaiy/datalevin "0.9.10") ``` diff --git a/native/project.clj b/native/project.clj index 69418f4e..c763c7a7 100644 --- a/native/project.clj +++ b/native/project.clj @@ -1,4 +1,4 @@ -(def version "0.9.9") +(def version "0.9.10") (defproject org.clojars.huahaiy/datalevin-native version :description "Datalevin GraalVM native image and command line tool" diff --git a/native/test-jar/deps.edn b/native/test-jar/deps.edn index 4dfbd9c2..97c99b7f 100644 --- a/native/test-jar/deps.edn +++ b/native/test-jar/deps.edn @@ -6,5 +6,5 @@ :main-class "test-jar.core" }}} :deps {org.clojure/clojure {:mvn/version "1.11.2"} org.clojars.huahaiy/datalevin-native - {:local/root "./../target/datalevin-native-0.9.9.jar"} + {:local/root "./../target/datalevin-native-0.9.10.jar"} }} diff --git a/project.clj b/project.clj index af8fead2..45d32efc 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(def version "0.9.9") +(def version "0.9.10") (defproject datalevin version :description "A simple, fast and versatile Datalog database" diff --git a/src/datalevin/main.clj b/src/datalevin/main.clj index e7872035..4086e215 100644 --- a/src/datalevin/main.clj +++ b/src/datalevin/main.clj @@ -24,7 +24,7 @@ (require 'datalevin.binding.graal) (require 'datalevin.binding.java)) -(def ^:private version "0.9.9") +(def ^:private version "0.9.10") (def ^:private version-str (str diff --git a/test-jar/deps.edn b/test-jar/deps.edn index 9a22ad3f..02046be1 100644 --- a/test-jar/deps.edn +++ b/test-jar/deps.edn @@ -1,4 +1,4 @@ {:deps - {datalevin/datalevin {:local/root "./../target/datalevin-0.9.9.jar"}} + {datalevin/datalevin {:local/root "./../target/datalevin-0.9.10.jar"}} ;{datalevin/datalevin {:mvn/version "0.8.18"}} } diff --git a/test-jar/project.clj b/test-jar/project.clj index 5c765f5f..dd32f51c 100644 --- a/test-jar/project.clj +++ b/test-jar/project.clj @@ -1,9 +1,9 @@ -(def version "0.9.9") +(def version "0.9.10") (defproject test-jar version :description "Test jar for Datalevin GraalVM native image compile" :dependencies [[org.clojure/clojure "1.11.2"] - [org.clojars.huahaiy/datalevin-native "0.9.9"]] + [org.clojars.huahaiy/datalevin-native "0.9.10"]] :jvm-opts ["--add-opens" "java.base/java.nio=ALL-UNNAMED" "--add-opens" "java.base/sun.nio.ch=ALL-UNNAMED" "--illegal-access=permit" diff --git a/test-jar/test-uber.sh b/test-jar/test-uber.sh index 1582affa..4bd6b068 100755 --- a/test-jar/test-uber.sh +++ b/test-jar/test-uber.sh @@ -14,7 +14,7 @@ cd "$(dirname "$0")" if [[ "$jvm_version" -gt "8" ]]; then java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --illegal-access=permit \ - -jar ../target/datalevin-0.9.9-standalone.jar exec << EOF + -jar ../target/datalevin-0.9.10-standalone.jar exec << EOF (def conn (get-conn "/tmp/test-db")) (transact! conn [{:name "world"}]) (q '[:find ?g :where [_ :name ?g]] @conn) @@ -23,7 +23,7 @@ EOF else - java -jar ../target/datalevin-0.9.9-standalone.jar exec << EOF + java -jar ../target/datalevin-0.9.10-standalone.jar exec << EOF (def conn (get-conn "/tmp/test-db")) (transact! conn [{:name "world"}]) (q '[:find ?g :where [_ :name ?g]] @conn)