Skip to content

Instantly share code, notes, and snippets.


Stuart Halloway stuarthalloway

View GitHub Profile
stuarthalloway / gist:3068749
Created Jul 8, 2012 — forked from cs224/gist:3066392
View gist:3068749
;; Datomic example code
;; Demonstrates using datalog with Clojure defrecords
(use '[datomic.api :only [q db] :as d])
(defrecord Supplier [number name status city])
(defrecord Part [number name colour weight city])
(defrecord Shipment [supplier part quantity])
;; sample data