Skip to content

Commit

Permalink
Version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
huahaiy committed Mar 10, 2022
1 parent 65cf41b commit 0a71da1
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 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.6.0
### Added
- Built-in full-text search engine, #27
- Key-value database `visit` function to do arbitrary things upon seeing a
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<p align="center"> 🧘 Simple, fast and versatile Datalog database for everyone 💽 </p>
<p align="center">
<a href="https://clojars.org/datalevin"><img src="https://img.shields.io/clojars/v/datalevin.svg?color=success" alt="datalevin on clojars"></img></a>
<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.5.31" alt="datalevin linux/macos build status"></img></a>
<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.6.0" alt="datalevin linux/macos 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>

</p>
Expand Down Expand Up @@ -101,14 +101,14 @@ If you use [Leiningen](https://leiningen.org/) build tool, add this to the
`:dependencies` section of your `project.clj` file:

```Clojure
[datalevin "0.5.31"]
[datalevin "0.6.0"]
```

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.5.31"}
{:deps {datalevin/datalevin {:mvn/version "0.6.0"}
com.cognitect/transit-clj {:mvn/version "1.0.324"}}}
```

Expand Down Expand Up @@ -185,16 +185,16 @@ 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.5.31/dtlv-0.5.31-ubuntu-latest-amd64.zip)
* [Linux](https://github.com/juji-io/datalevin/releases/download/0.6.0/dtlv-0.6.0-ubuntu-latest-amd64.zip)
on x86-64 (AMD64)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.5.31/dtlv-0.5.31-macos-latest-amd64.zip)
* [MacOS](https://github.com/juji-io/datalevin/releases/download/0.6.0/dtlv-0.6.0-macos-latest-amd64.zip)
on x86-64 (AMD64)
* [Windows](https://github.com/juji-io/datalevin/releases/download/0.5.31/dtlv-0.5.31-windows-amd64.zip) on x86-64 (AMD64)
* [Windows](https://github.com/juji-io/datalevin/releases/download/0.6.0/dtlv-0.6.0-windows-amd64.zip) on x86-64 (AMD64)

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

```console
Datalevin (version: 0.5.31)
Datalevin (version: 0.6.0)

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

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

```console
Datalevin (version: 0.5.31)
Datalevin (version: 0.6.0)

Type (help) to see available functions. Some Clojure core functions are also available.
Type (exit) to exit.
Expand Down Expand Up @@ -286,12 +286,12 @@ 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.5.31/datalevin-0.5.31-standalone.jar)
[uberjar](https://github.com/juji-io/datalevin/releases/download/0.6.0/datalevin-0.6.0-standalone.jar)
is downloadable to use as the command line tool, in case a pre-built native
version is not available for your platform. For example,

```console
java -jar datalevin-0.5.31-standalone.jar
java -jar datalevin-0.6.0-standalone.jar
```
This will start the Datalevin REPL.

Expand All @@ -306,7 +306,7 @@ Datalevin directly from [pod registry](https://github.com/babashka/pod-registry)
#!/usr/bin/env bb
(require '[babashka.pods :as pods])
(pods/load-pod 'huahaiy/datalevin "0.5.31")
(pods/load-pod 'huahaiy/datalevin "0.6.0")
```

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.5.31)
Datalevin (version: 0.6.0)

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

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

Datalevin (version: 0.5.31)
Datalevin (version: 0.6.0)

Type (help) to see available functions. Some Clojure core functions are also available.
Type (exit) to exit.
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.5.31")
(def version "0.6.0")

(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.10.3"}
org.clojars.huahaiy/datalevin-native
{:local/root "./../target/datalevin-native-0.5.31.jar"}
{:local/root "./../target/datalevin-native-0.6.0.jar"}
}}
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.5.31")
(def version "0.6.0")

(defproject datalevin version
:description "A simple, fast and versatile Datalog database"
Expand Down
2 changes: 1 addition & 1 deletion src/datalevin/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
(require 'datalevin.binding.graal)
(require 'datalevin.binding.java))

(def ^:private version "0.5.31")
(def ^:private version "0.6.0")

(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.5.31.jar"}}
;{datalevin/datalevin {:mvn/version "0.5.31"}}
{datalevin/datalevin {:local/root "./../target/datalevin-0.6.0.jar"}}
;{datalevin/datalevin {:mvn/version "0.6.0"}}
}
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.5.31")
(def version "0.6.0")

(defproject test-jar version
:description "Test jar for Datalevin GraalVM native image compile"
:dependencies [[org.clojure/clojure "1.10.3"]
[org.clojars.huahaiy/datalevin-native "0.5.31"]]
[org.clojars.huahaiy/datalevin-native "0.6.0"]]
: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 @@ -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.5.31-standalone.jar exec << EOF
-jar ../target/datalevin-0.6.0-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.5.31-standalone.jar exec << EOF
java -jar ../target/datalevin-0.6.0-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 0a71da1

Please sign in to comment.