Snaj is an attempt to snitch some cool things from the Clojure land into the Kawa world (in particular the Datomic database).
This repository is mostly self-contained (save
for the JVM). The .jar files were obtained by
running Clojure on a fresh system and importing
the dependencies for Datomic Local.
The kawa.jar file was taken from the GRASP project
and it contains a build from what was a tip of the
Kawa repo.
The datomic-samples directory comes from the zip
pointed to by Datomic Local tutorial, with the
mbrainz-subset directory removed.
Here’s what a sample session might look like:
~/snaj $ ./run-kawa.sh #|kawa:1|# (import (snaj)) #|kawa:2|# (datomic-init) #!null #|kawa:3|# (define db (datomic-local "datomic-samples" "movies")) #|kawa:4|# (select ?movie-title from (database-snapshot db) where (_ movie/title: ?movie-title)) #(#(Commando) #(The Goonies) #(Repo Man))