Liking cljdoc? Tell your friends :D

documentation

installation

Clojars Project

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]}]}}}}

Leiningen on Ubuntu

sudo apt install leiningen

Leiningen on openSUSE (LEAP 15)

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

devel

All devel commands have to be executed in the root directory of vl-data-insert.

$ cd path/to/vl-data-insert

documentation

(re)generate documentation

$ lein codox

tests

$ lein test

Run tests from REPL

Example utils-tests:

(ns cmp.utils-test) 
(use 'clojure.test)
(run-tests)

code coverage

$ lein cloverage

Can you improve this documentation? These fine people already did:
Wact B. Prot & Thomas Bock
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close