Liking cljdoc? Tell your friends :D

spirit.data.schema.base


all-auto-defaultsclj

(all-auto-defaults)
(all-auto-defaults meta)
raw docstring

all-defaultsclj

(all-defaults)
(all-defaults meta)
raw docstring

attr-add-defaultsclj

(attr-add-defaults [k [attr :as v]] dfts)

adds defaults to a given schema property pair (base/attr-add-defaults [:person [{}]] []) => [:person [{}]]

(base/attr-add-defaults [:person [{}]] [{:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:cardinality :one :type :string}]]

(base/attr-add-defaults [:person [{:cardinality :many :type :long}]] [{:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:cardinality :many :type :long}]]

(base/attr-add-defaults [:person [{}]] [{:default false, :id :index} {:default false, :id :fulltext} {:default false, :id :noHistory} {:default :string, :auto true, :id :type} {:default :one, :auto true, :id :cardinality}]) => [:person [{:index false :fulltext false :cardinality :one :noHistory false :type :string}]]

adds defaults to a given schema property pair
(base/attr-add-defaults [:person [{}]] [])
=> [:person [{}]]

(base/attr-add-defaults [:person [{}]]
                        [{:default :string, :auto true, :id :type} 
                         {:default :one, :auto true, :id :cardinality}])
=> [:person [{:cardinality :one :type :string}]]

(base/attr-add-defaults [:person [{:cardinality :many :type :long}]]
                        [{:default :string, :auto true, :id :type} 
                         {:default :one, :auto true, :id :cardinality}])
=> [:person [{:cardinality :many
              :type :long}]]

(base/attr-add-defaults [:person [{}]]
                        [{:default false, :id :index} 
                         {:default false, :id :fulltext} 
                         {:default false, :id :noHistory} 
                         {:default :string, :auto true, :id :type} 
                         {:default :one, :auto true, :id :cardinality}])
=> [:person [{:index false
              :fulltext false
              :cardinality :one
              :noHistory false
              :type :string}]]
raw docstring

attr-add-identclj

(attr-add-ident [k [attr :as v]])

adds the key of a pair as :ident to a schema property pair (base/attr-add-ident [:person [{}]]) => [:person [{:ident :person}]]

(base/attr-add-ident [:person/address [{}]]) => [:person/address [{:ident :person/address}]]

adds the key of a pair as :ident to a schema property pair
(base/attr-add-ident [:person [{}]])
=> [:person [{:ident :person}]]

(base/attr-add-ident [:person/address [{}]])
=> [:person/address [{:ident :person/address}]]
raw docstring

base-metaclj


defaultsclj

(defaults [k prop])
raw docstring

type-checkscljmultimethod

raw docstring

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

× close