Skip to content

Commit

Permalink
Version 0.9.18
Browse files Browse the repository at this point in the history
  • Loading branch information
huahaiy committed Jan 21, 2025
1 parent 83eb188 commit f2526be
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 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.18 (2025-01-20)

## Added
- [KV] `set-env-flags` and `get-env-flags`, so users may change the env flags
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.17)
Datalevin (version: 0.9.18)

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.17)
Datalevin (version: 0.9.18)

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.17"]
[datalevin "0.9.18"]
```

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.17"}}}
{:deps {datalevin/datalevin {:mvn/version "0.9.18"}}}
```

This library supports Java 11 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.17/dtlv-0.9.17-ubuntu-latest-amd64.zip)
* [Linux](https://github.com/juji-io/datalevin/releases/download/0.9.18/dtlv-0.9.18-ubuntu-latest-amd64.zip)
on x86-64 (AMD64)
* [Linux](https://github.com/juji-io/datalevin/releases/download/0.9.17/dtlv-0.9.17-ubuntu-latest-aarch64.zip)
* [Linux](https://github.com/juji-io/datalevin/releases/download/0.9.18/dtlv-0.9.18-ubuntu-latest-aarch64.zip)
on arm64 (AARCH64)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.9.17/dtlv-0.9.17-macos-latest-aarch64.zip)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.9.18/dtlv-0.9.18-macos-latest-aarch64.zip)
on arm64 (AARCH64)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.9.17/dtlv-0.9.17-macos-latest-amd64.zip)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.9.18/dtlv-0.9.18-macos-latest-amd64.zip)
on x86-64 (AMD64)
* [Windows](https://github.com/juji-io/datalevin/releases/download/0.9.17/dtlv-0.9.17-windows-amd64.zip) on x86-64 (AMD64)
* [Windows](https://github.com/juji-io/datalevin/releases/download/0.9.18/dtlv-0.9.18-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.17/datalevin-0.9.17-standalone.jar)
[uberjar](https://github.com/juji-io/datalevin/releases/download/0.9.18/datalevin-0.9.18-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.17-standalone.jar
java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -jar datalevin-0.9.18-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.17-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.18-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.17")
(pods/load-pod 'huahaiy/datalevin "0.9.18")
```

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.17")
(def version "0.9.18")

(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.17")
"0.9.18")

;;---------------------------------------------
;; 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.17.jar"}}
datalevin/datalevin {:local/root "../target/datalevin-0.9.18.jar"}}
:aliases {:build
{:deps {io.github.clojure/tools.build {:mvn/version "0.10.6"}}
:ns-default build}}}
2 changes: 1 addition & 1 deletion test-jar/test-uber.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cd "$(dirname "$0")"

java --add-opens=java.base/java.nio=ALL-UNNAMED \
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
-jar ../target/datalevin-0.9.17-standalone.jar exec << EOF
-jar ../target/datalevin-0.9.18-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 f2526be

Please sign in to comment.