Liking cljdoc? Tell your friends :D

ventas.database.entity


after-transactclj

(after-transact entity tx)
source

attributes-by-schema-kvclj

(attributes-by-schema-kv entity k v)

Returns the attributes of an entity whose schema matches the given value for the k attribute

Returns the attributes of an entity whose schema matches the given value for the k attribute
sourceraw docstring

autoresolve?clj

(autoresolve? type)
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

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 ref)
source

dependenciesclj

(dependencies type)
source

deserializeclj

(deserialize type data)

The inverse of serialize

The inverse of serialize
sourceraw docstring

entity?clj

(entity? entity)
source

enum-specclj

(enum-spec elements)
source

filter-createclj

(filter-create 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 ref (see ::ref spec) Returns nil if no entity was found

Finds an entity by ref (see ::ref spec)
Returns nil if no entity was found
sourceraw docstring

find-serializeclj

(find-serialize eid & [params])

Shortcut for (serialize (find eid) params)

Shortcut for (serialize (find eid) params)
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 v)

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

lifecycle-createclj

(lifecycle-create attrs transact-fn)
source

lifecycle-updateclj

(lifecycle-update {:db/keys [id] :as attrs} {:keys [append?]} transact-fn)
source

mass-deleteclj

(mass-delete type)

Deletes all entities of the given type

Deletes all entities of the given type
sourceraw docstring

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

ref-specclj

(ref-spec type)
source

refs-generatorclj

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

refs-specclj

(refs-spec type)
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

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 properties of an entity type

Returns the properties of an entity type
sourceraw docstring

type-propertyclj

(type-property entity-type property)
source

typesclj

(types)

Returns all types

Returns all types
sourceraw docstring

types-with-propertyclj

(types-with-property property)
source

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* attrs & opts)

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