Skip to content

Commit

Permalink
Version 0.8.17
Browse files Browse the repository at this point in the history
  • Loading branch information
huahaiy committed Jul 3, 2023
1 parent 61a1adb commit d2dd4c1
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 36 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.8.17 (2023-07-02)
### Added
- [main] Added an `--nippy` option to dump/load database in nippy binary
format, which handles some data anomalies, e.g. keywords with space in
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</p>
<p align="center">
<a href="https://github.com/juji-io/datalevin/actions"><img
src="https://github.com/juji-io/datalevin/actions/workflows/release.binaries.yml/badge.svg?branch=0.8.16"
src="https://github.com/juji-io/datalevin/actions/workflows/release.binaries.yml/badge.svg?branch=0.8.17"
alt="datalevin linux/macos amd64 build status"></img></a>
<a href="https://ci.appveyor.com/project/huahaiy/datalevin"><img src="https://ci.appveyor.com/api/projects/status/github/juji-io/datalevin?svg=true" alt="datalevin windows build status"></img></a>
<a href="https://cirrus-ci.com/github/juji-io/datalevin"><img src="https://api.cirrus-ci.com/github/juji-io/datalevin.svg"
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.8.16)
Datalevin (version: 0.8.17)

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

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

Datalevin (version: 0.8.16)
Datalevin (version: 0.8.17)

Type (help) to see available functions. Some Clojure core functions are also available.
Type (exit) to exit.
Expand Down
26 changes: 13 additions & 13 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.8.16"]
[datalevin "0.8.17"]
```

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.8.16"}
{:deps {datalevin/datalevin {:mvn/version "0.8.17"}
com.cognitect/transit-clj {:mvn/version "1.0.329"}}}
```

Expand Down Expand Up @@ -123,18 +123,18 @@ 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.8.16/dtlv-0.8.16-ubuntu-latest-amd64.zip)
* [Linux](https://github.com/juji-io/datalevin/releases/download/0.8.17/dtlv-0.8.17-ubuntu-latest-amd64.zip)
on x86-64 (AMD64)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.8.16/dtlv-0.8.16-macos-latest-aarch64.zip)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.8.17/dtlv-0.8.17-macos-latest-aarch64.zip)
on arm64 (AARCH64)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.8.16/dtlv-0.8.16-macos-latest-amd64.zip)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.8.17/dtlv-0.8.17-macos-latest-amd64.zip)
on x86-64 (AMD64)
* [Windows](https://github.com/juji-io/datalevin/releases/download/0.8.16/dtlv-0.8.16-windows-amd64.zip) on x86-64 (AMD64)
* [Windows](https://github.com/juji-io/datalevin/releases/download/0.8.17/dtlv-0.8.17-windows-amd64.zip) on x86-64 (AMD64)

Unzip, put it on your path, and execute `dtlv help`:

```console
Datalevin (version: 0.8.16)
Datalevin (version: 0.8.17)

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

Expand Down Expand Up @@ -171,7 +171,7 @@ Type 'dtlv help <command>' to read about a specific command.
Starting `dtlv` without any arguments goes into the console:

```console
Datalevin (version: 0.8.16)
Datalevin (version: 0.8.17)

Type (help) to see available functions. Some Clojure core functions are also available.
Type (exit) to exit.
Expand Down Expand Up @@ -230,20 +230,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.8.16/datalevin-0.8.16-standalone.jar)
[uberjar](https://github.com/juji-io/datalevin/releases/download/0.8.17/datalevin-0.8.17-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.8.16-standalone.jar
java --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -jar datalevin-0.8.17-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.8.16-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.8.17-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 @@ -261,7 +261,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.8.16")
(pods/load-pod 'huahaiy/datalevin "0.8.17")
```

Expand All @@ -270,7 +270,7 @@ that can be used in a query, e.g.:

```console
$ rlwrap bb
Babashka v0.8.16 REPL.
Babashka v0.8.17 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

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

(defproject org.clojars.huahaiy/datalevin-native version
:description "Datalevin GraalVM native image and command line tool"
Expand Down
2 changes: 1 addition & 1 deletion native/test-jar/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
:main-class "test-jar.core" }}}
:deps {org.clojure/clojure {:mvn/version "1.11.1"}
org.clojars.huahaiy/datalevin-native
{:local/root "./../target/datalevin-native-0.8.16.jar"}
{:local/root "./../target/datalevin-native-0.8.17.jar"}
}}
20 changes: 10 additions & 10 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(def version "0.8.16")
(def version "0.8.17")

(defproject datalevin version
:description "A simple, fast and versatile Datalog database"
Expand All @@ -9,21 +9,21 @@
[[babashka/babashka.pods "0.2.0"]
[cheshire "5.11.0"]
[com.cognitect/transit-clj "1.0.333"]
[com.fasterxml.jackson.core/jackson-core "2.15.0"]
[com.fasterxml.jackson.core/jackson-databind "2.15.0"]
[com.fasterxml.jackson.core/jackson-core "2.15.2"]
[com.fasterxml.jackson.core/jackson-databind "2.15.2"]
[com.github.clj-easy/graal-build-time "0.1.4"]
[com.github.jnr/jnr-ffi "2.2.13"]
[com.taoensso/encore "3.59.0"]
[com.github.jnr/jnr-ffi "2.2.14"]
[com.taoensso/encore "3.60.0"]
[com.taoensso/nippy "3.2.0"]
[com.taoensso/timbre "6.1.0"]
[com.taoensso/timbre "6.2.0"]
;; only for testing serializing joda-time, as some user data contain these
[joda-time/joda-time "2.12.5"]
[me.lemire.integercompression/JavaFastPFOR "0.1.12"]
[nrepl/bencode "1.1.0"]
[org.babashka/sci "0.7.39"]
[org.babashka/sci "0.8.40"]
[org.bouncycastle/bcprov-jdk15on "1.70"]
[org.clojure/clojure "1.10.3"]
;; [org.clojure/clojure "1.11.1"]
;; [org.clojure/clojure "1.10.3"]
[org.clojure/clojure "1.11.1"]
[org.clojure/tools.cli "1.0.219"]
[org.clojure/test.check "1.1.1"]
[org.clojure/data.csv "1.0.1"]
Expand All @@ -37,7 +37,7 @@
[org.graalvm.nativeimage/svm "22.3.1"]
[org.graalvm.nativeimage/library-support "22.3.1"]
[org.lmdbjava/lmdbjava "0.8.3"]
[org.roaringbitmap/RoaringBitmap "0.9.44"]]
[org.roaringbitmap/RoaringBitmap "0.9.45"]]
:dependencies
[[org.clojure/clojure :scope "provided"]
[org.clojars.huahaiy/dtlvnative-macos-aarch64-shared]
Expand Down
2 changes: 1 addition & 1 deletion src/datalevin/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
(require 'datalevin.binding.graal)
(require 'datalevin.binding.java))

(def ^:private version "0.8.16")
(def ^:private version "0.8.17")

(def ^:private version-str
(str
Expand Down
4 changes: 2 additions & 2 deletions test-jar/deps.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{:deps
{datalevin/datalevin {:local/root "./../target/datalevin-0.8.16.jar"}}
;{datalevin/datalevin {:mvn/version "0.8.16"}}
{datalevin/datalevin {:local/root "./../target/datalevin-0.8.17.jar"}}
;{datalevin/datalevin {:mvn/version "0.8.17"}}
}
4 changes: 2 additions & 2 deletions test-jar/project.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(def version "0.8.16")
(def version "0.8.17")

(defproject test-jar version
:description "Test jar for Datalevin GraalVM native image compile"
:dependencies [[org.clojure/clojure "1.11.1"]
[org.clojars.huahaiy/datalevin-native "0.8.16"]]
[org.clojars.huahaiy/datalevin-native "0.8.17"]]
:jvm-opts ["--add-opens" "java.base/java.nio=ALL-UNNAMED"
"--add-opens" "java.base/sun.nio.ch=ALL-UNNAMED"
"--illegal-access=permit"
Expand Down
4 changes: 2 additions & 2 deletions test-jar/test-uber.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.8.16-standalone.jar exec << EOF
-jar ../target/datalevin-0.8.17-standalone.jar exec << EOF
(def conn (get-conn "/tmp/test-db"))
(transact! conn [{:name "world"}])
(q '[:find ?g :where [_ :name ?g]] @conn)
Expand All @@ -23,7 +23,7 @@ EOF

else

java -jar ../target/datalevin-0.8.16-standalone.jar exec << EOF
java -jar ../target/datalevin-0.8.17-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 d2dd4c1

Please sign in to comment.