parent
7b4f3aeba5
commit
39c1b06ff5
@ -0,0 +1,17 @@
|
|||||||
|
(ns wanijo.attribute.domain
|
||||||
|
(:require [clojure.spec.alpha :as spec]
|
||||||
|
[wanijo.framework.neo4j :as neo4j]))
|
||||||
|
|
||||||
|
(neo4j/defquery
|
||||||
|
findy-by-schema
|
||||||
|
"MATCH (a:attribute)-->(s:schema)
|
||||||
|
WHERE s.uuid = {uuid}
|
||||||
|
RETURN a
|
||||||
|
ORDER BY a.name")
|
||||||
|
|
||||||
|
(defn find-by-schema! [schema-uuid]
|
||||||
|
(->>
|
||||||
|
(neo4j/exec-query!
|
||||||
|
findy-by-schema
|
||||||
|
{:uuid schema-uuid})
|
||||||
|
(map :a)))
|
@ -0,0 +1,2 @@
|
|||||||
|
(ns wanijo.framework.time
|
||||||
|
(:require [clj-time.core :as t]))
|
Loading…
Reference in new issue