Skip to content

refset/datalog-parser.malli

 
 

Repository files navigation

Clojars Project

io.github.bsless/datalog-parser.malli

1-1 translation of datalog query spec based on the official Datomic documentation implemented in metosin/malli.

NOTE: Legacy spec not implemented

Uses io.github.bsless/datalog-parser.spec as a reference implementation

Usage

(require '[bsless.datalog-parser.malli :refer [parse]])

(parse
 '[:find ?track-name ?minutes
   :in $ ?artist-name
   :where [?artist :artist/name ?artist-name]
   [?track :track/artists ?artist]
   [?track :track/duration ?millis]
   [(quot ?millis 60000) ?minutes]
   [?track :track/name ?track-name]])

License

Copyright © 2022 Ben Sless

Distributed under the Eclipse Public License version 1.0.

About

Datomic Datalog parser in Clojure with malli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%