Liking cljdoc? Tell your friends :D

spirit.data.schema.base


all-auto-defaults

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

all-defaults

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

attr-add-defaults

(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-ident

(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-meta


defaults

(defaults [k prop])
raw docstring

type-checksmultimethod

raw docstring

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

× close