Liking cljdoc? Tell your friends :D

ventas.database.entity


after-createclj

(after-create entity)
source

after-deleteclj

(after-delete entity)
source

after-seedclj

(after-seed entity)
source

after-updateclj

(after-update entity new-entity)
source

attributesclj

(attributes type)
source

attributes-by-identclj

(attributes-by-ident type)
source

autoresolve?clj

(autoresolve? type)
source

before-createclj

(before-create entity)
source

before-deleteclj

(before-delete entity)
source

before-seedclj

(before-seed entity)
source

before-updateclj

(before-update entity new-attrs)
source

call-type-fnclj

(call-type-fn property entity & args)
source

check-db-migrated!clj

(check-db-migrated!)

Throws if (not (db-migrated?))

Throws if (not (db-migrated?))
sourceraw docstring

component?clj

(component? type)
source

createclj

(create type attributes)

Creates an entity from unqualified attributes. Example usage: (create :user {:name Joel :email test@test.com})

Creates an entity from unqualified attributes.
Example usage:
(create :user {:name `Joel` :email `test@test.com`})
sourceraw docstring

create*clj

(create* attrs)

Creates an entity

Creates an entity
sourceraw docstring

datesclj

(dates eid)

First and last dates associated with an eid

First and last dates associated with an eid
sourceraw docstring

db-migrated?clj

(db-migrated?)
source

default-attrclj

(default-attr attr-name)
source

default-deserializeclj

(default-deserialize attributes)

Inverse of serialize

Inverse of serialize
sourceraw docstring

default-serializeclj

(default-serialize entity & [{:keys [keep-type?] :as options}])
source

deleteclj

(delete eid)
source

dependenciesclj

(dependencies type)
source

deserializeclj

(deserialize type data)
source

entity?clj

(entity? entity)
source

filter-createclj

(filter-create entity)
source

filter-seedclj

(filter-seed entity)
source

filter-updateclj

(filter-update entity data)
source

filters->wheresclj

(filters->wheres type filters)

Generates :where clauses

Generates `:where` clauses
sourceraw docstring

findclj

(find eid)

Finds an entity by eid or lookup ref Returns nil if no entity was found

Finds an entity by eid or lookup ref
Returns nil if no entity was found
sourceraw docstring

find-by-slugclj

(find-by-slug slug)
source

find-recursivelyclj

(find-recursively eid)
source

find-serializeclj

(find-serialize eid & [params])

Same as doing (serialize (find eid) params), which is a very common thing to do

Same as doing (serialize (find eid) params), which is a very common thing to do
sourceraw docstring

fixturesclj

(fixtures type)
source

generateclj

(generate type & [n])

Generates n samples of a given entity type

Generates n samples of a given entity type
sourceraw docstring

generate*clj

(generate* type)

Generates one sample of a given entity type

Generates one sample of a given entity type
sourceraw docstring

idents-with-value-typeclj

(idents-with-value-type entity value-type)

Returns the idents of an entity with the given valueType

Returns the idents of an entity with the given valueType
sourceraw docstring

kw->typeclj

(kw->type kw)
source

queryclj

(query type & [filters])

Performs a high-level query. Accepts optional wheres clauses

Performs a high-level query.
Accepts optional `wheres` clauses
sourceraw docstring

query-oneclj

(query-one type & [filters])

(first (query))

(first (query))
sourceraw docstring

ref-generatorclj

(ref-generator type & {:keys [new?]})
source

refs-generatorclj

(refs-generator type & {:keys [new?]})
source

register-type!clj

(register-type! kw & [m])

Registers an entity type Example: (register-entity-type! :user)

Registers an entity type
Example: (register-entity-type! :user)
sourceraw docstring

registered-typesclj

source

resolve-by-slugclj

(resolve-by-slug slug)
source

seed-numberclj

(seed-number type)
source

serializeclj

(serialize entity & [options])

Transforms an entity into a stripped map, suitable for sending to the outside

Transforms an entity into a stripped map, suitable for sending to the outside
sourceraw docstring

spec!clj

(spec! entity)

Checks that an entity complies with its spec

Checks that an entity complies with its spec
sourceraw docstring

transaction->entityclj

(transaction->entity tx tempid)

Returns an entity from a transaction

Returns an entity from a transaction
sourceraw docstring

typeclj

(type entity)

Returns the type of an entity

Returns the type of an entity
sourceraw docstring

type->kwclj

(type->kw type)
source

type-exists?clj

(type-exists? type)
source

type-propertiesclj

(type-properties type)

Returns the functions of an entity type

Returns the functions of an entity type
sourceraw docstring

type-propertyclj

(type-property entity-type property)
source

typesclj

(types)

Returns all types

Returns all types
sourceraw docstring

updateclj

(update {:keys [id] :as attrs})

Updates an entity from unqualified attributes. Example usage: (update {:id 1234567 :name Other name})

Updates an entity from unqualified attributes.
Example usage:
(update {:id 1234567 :name `Other name`})
sourceraw docstring

update*clj

(update* {:db/keys [id] :as attrs} & {:keys [append?]})

Updates an entity. Example usage: (update* {:db/id 1234567 :user/first-name Other name})

Updates an entity.
Example usage:
(update* {:db/id 1234567
          :user/first-name `Other name`})
sourceraw docstring

upsertclj

(upsert type {:keys [id] :as attributes})
source

upsert*clj

(upsert* {:db/keys [id] :as attributes})
source

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

× close