Skip to content

Commit

Permalink
Version 0.9.15
Browse files Browse the repository at this point in the history
  • Loading branch information
huahaiy committed Jan 17, 2025
1 parent c798211 commit af7366a
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## WIP
## 0.9.15 (2025-01-17)

### Added
- [KV] `transanct-kv-async` function to return a future and transact in batches
Expand Down
4 changes: 2 additions & 2 deletions doc/dtlv.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server.

$ dtlv help

Datalevin (version: 0.9.14)
Datalevin (version: 0.9.15)

Usage: dtlv [options] [command] [arguments]

Expand Down Expand Up @@ -51,7 +51,7 @@ will initiate an interactive console (REPL).
```console
$ dtlv

Datalevin (version: 0.9.14)
Datalevin (version: 0.9.15)

Type (help) to see available functions. Some Clojure core functions are also available.
Type (exit) to exit.
Expand Down
22 changes: 11 additions & 11 deletions doc/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ If you use [Leiningen](https://leiningen.org/) build tool, add this to the
`:dependencies` section of your `project.clj` file:

```Clojure
[datalevin "0.9.14"]
[datalevin "0.9.15"]
```

If you use [Clojure CLI](https://clojure.org/guides/deps_and_cli) and
`deps.edn`, declare the dependency like so:

```Clojure
{:deps {datalevin/datalevin {:mvn/version "0.9.14"}}}
{:deps {datalevin/datalevin {:mvn/version "0.9.15"}}}
```

This library supports Java 8 and above.
Expand Down Expand Up @@ -108,15 +108,15 @@ See [README on Docker hub](https://hub.docker.com/r/huahaiy/datalevin) for usage

Or download the executable binary from github:

* [Linux](https://github.com/juji-io/datalevin/releases/download/0.9.14/dtlv-0.9.14-ubuntu-latest-amd64.zip)
* [Linux](https://github.com/juji-io/datalevin/releases/download/0.9.15/dtlv-0.9.15-ubuntu-latest-amd64.zip)
on x86-64 (AMD64)
* [Linux](https://github.com/juji-io/datalevin/releases/download/0.9.14/dtlv-0.9.14-ubuntu-latest-aarch64.zip)
* [Linux](https://github.com/juji-io/datalevin/releases/download/0.9.15/dtlv-0.9.15-ubuntu-latest-aarch64.zip)
on arm64 (AARCH64)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.9.14/dtlv-0.9.14-macos-latest-aarch64.zip)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.9.15/dtlv-0.9.15-macos-latest-aarch64.zip)
on arm64 (AARCH64)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.9.14/dtlv-0.9.14-macos-latest-amd64.zip)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.9.15/dtlv-0.9.15-macos-latest-amd64.zip)
on x86-64 (AMD64)
* [Windows](https://github.com/juji-io/datalevin/releases/download/0.9.14/dtlv-0.9.14-windows-amd64.zip) on x86-64 (AMD64)
* [Windows](https://github.com/juji-io/datalevin/releases/download/0.9.15/dtlv-0.9.15-windows-amd64.zip) on x86-64 (AMD64)

Unzip to get a `dtlv` executable, put it on your path.

Expand All @@ -125,20 +125,20 @@ 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.14/datalevin-0.9.14-standalone.jar)
[uberjar](https://github.com/juji-io/datalevin/releases/download/0.9.15/datalevin-0.9.15-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
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.14-standalone.jar
java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -jar datalevin-0.9.15-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.14-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.15-standalone.jar serv -r /tmp/test-server
```
Will run the Datalevin server on default port 8898, with root data path at
`/tmp/test-server`.
Expand All @@ -156,7 +156,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.14")
(pods/load-pod 'huahaiy/datalevin "0.9.15")
```

Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(def version "0.9.14")
(def version "0.9.15")

(defproject datalevin version
:description "A simple, fast and versatile Datalog database"
Expand Down
2 changes: 1 addition & 1 deletion src/datalevin/constants.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

(def version
"Version number of Datalevin"
"0.9.14")
"0.9.15")

;;---------------------------------------------
;; system constants, fixed
Expand Down
2 changes: 1 addition & 1 deletion test-jar/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:deps
{org.clojure/clojure {:mvn/version "1.12.0"}
com.github.clj-easy/graal-build-time {:mvn/version "1.0.5"}
datalevin/datalevin {:local/root "../target/datalevin-0.9.14.jar"}}
datalevin/datalevin {:local/root "../target/datalevin-0.9.15.jar"}}
:aliases {:build
{:deps {io.github.clojure/tools.build {:mvn/version "0.10.6"}}
:ns-default build}}}
4 changes: 2 additions & 2 deletions test-jar/test-uber.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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.14-standalone.jar exec << EOF
-jar ../target/datalevin-0.9.15-standalone.jar exec << EOF
(def conn (get-conn "/tmp/test-db"))
(transact! conn [{:name "world"}])
(q '[:find ?g :where [_ :name ?g]] @conn)
Expand All @@ -20,7 +20,7 @@ EOF

else

java -jar ../target/datalevin-0.9.14-standalone.jar exec << EOF
java -jar ../target/datalevin-0.9.15-standalone.jar exec << EOF
(def conn (get-conn "/tmp/test-db"))
(transact! conn [{:name "world"}])
(q '[:find ?g :where [_ :name ?g]] @conn)
Expand Down

0 comments on commit af7366a

Please sign in to comment.