In project.clj
add:
{:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojars.wactbprot/vl-data-insert "0.1.1"]]
}
Require in namespace with:
(ns demo.insert
(:require [vl-data-insert.core :as i]))
Example usage:
(def p "Calibration.Measurement.Values.Pressure")
(def m {:Type "a"
:Unit "b"
:Value [0]
:SdValue [0]
:N [1]})
(def d {:Calibration
{:Measurement
{:Values
{:Pressure
[{:Type "a"
:Unit "b"
:Value [0]
:SdValue [0]
:N [1]}]}}}})
(i/store-results d [m m m m] p)
;; =>
;; {:Calibration
;; {:Measurement
;; {:Values
;; {:Pressure
;; [{:Type "a",
;; :Unit "b",
;; :Value [0 0 0 0 0],
;; :SdValue [0 0 0 0 0],
;; :N [1 1 1 1 1]}]}}}}
sudo apt install leiningen
zypper ar https://download.opensuse.org/repositories/devel:/languages:/clojure/openSUSE_Leap_15.1/devel:languages:clojure.repo
zypper ref devel_languages_clojure
zypper in leiningen
All devel commands have to be executed in the root directory of vl-data-insert.
$ cd path/to/vl-data-insert
(re)generate documentation
$ lein codox
$ lein test
Example utils-tests
:
(ns cmp.utils-test)
(use 'clojure.test)
(run-tests)
$ lein cloverage
Can you improve this documentation? These fine people already did:
Wact B. Prot & Thomas BockEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close