Skip to content

panicz/snaj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snaj

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))

About

Kawa Scheme snitching Clojure's Datomic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published