Liking cljdoc? Tell your friends :D

eva.core


AdvanceIndexcljprotocol

->rootclj

(->root index)

advanceclj

(advance index db tx-log-entry)

advance-index-to-txclj

(advance-index-to-tx index db tx-log target-tx-num)

batch-advance-indexclj

(batch-advance-index index tx-log tx-num)

initialize-indexclj

(initialize-index index init-datoms)

safe-advance-indexclj

(safe-advance-index index db tx-log-entry)

safe-advance-index-betterclj

(safe-advance-index-better index ref-attr-eids byte-attr-eids tx-log-entry)
source

ComponentResolutioncljprotocol

batch-resolve-componentsclj

(batch-resolve-components db index component-coll)

resolve-componentsclj

(resolve-components db index components)
source

DatabaseInternalcljprotocol

->fnclj

(->fn db eid)

allocated-entity-id?clj

(allocated-entity-id? db eid)

db-fn?clj

(db-fn? db eid)

resolve-eid-partitionclj

(resolve-eid-partition db eid)
source

entid-coercioncljmacro

(entid-coercion subtype detail-str data)
(entid-coercion subtype detail-str data cause)

Records this raise-site under :entid-coercion/<subtype> in eva.error/eva-error-form, and expands into the equivalent of:

   (error (str "<subtype-generic-str>: " detail-str)
          :entid-coercion/<subtype>
          cause)

The following map shows, for each subtype, what keywords are required in the data map, and what the generic portion of the string will be:

{:malformed-lookup-ref {:required #{}, :generic-str "Malformed lookup reference"}, :illegal-type {:required #{}, :generic-str "Invalid type for entity coercion"}, :strict-coercion-failure {:required #{}, :generic-str "Failed to strictly coerce to an entity id"}}

Records this raise-site under :entid-coercion/<subtype> in eva.error/eva-error-form, and expands into the
          equivalent of:

       (error (str "<subtype-generic-str>: " detail-str)
              :entid-coercion/<subtype>
              cause)

The following map shows, for each subtype, what keywords are required in
the data map, and what the generic portion of the string will be:

   {:malformed-lookup-ref {:required #{},
                          :generic-str "Malformed lookup reference"},
   :illegal-type {:required #{},
                  :generic-str "Invalid type for entity coercion"},
   :strict-coercion-failure {:required #{},
                             :generic-str "Failed to strictly coerce to an entity id"}}
sourceraw docstring

EntidCoercionTypecljprotocol

entid-coercion-typeclj

(entid-coercion-type x)

Returns a keyword representing the type of this object for the purposes of entity id coercion. Exists as a protocol so that we can use satisfies? to identify objects outside of this class. Is also used internally for partitioning objects for batch resolution.

Returns a keyword representing the type of this object for the purposes of entity id coercion. Exists as a protocol so that we can use satisfies? to identify objects outside of this class. Is also used internally for partitioning objects for batch resolution.
source

ident-coercioncljmacro

(ident-coercion subtype detail-str data)
(ident-coercion subtype detail-str data cause)

Records this raise-site under :ident-coercion/<subtype> in eva.error/eva-error-form, and expands into the equivalent of:

   (error (str "<subtype-generic-str>: " detail-str)
          :ident-coercion/<subtype>
          cause)

The following map shows, for each subtype, what keywords are required in the data map, and what the generic portion of the string will be:

{:illegal-type {:required #{}, :generic-str "Invalid type for ident coercion"}, :strict-coercion-failure {:required #{}, :generic-str "Failed to strictly coerce to an ident"}}

Records this raise-site under :ident-coercion/<subtype> in eva.error/eva-error-form, and expands into the
          equivalent of:

       (error (str "<subtype-generic-str>: " detail-str)
              :ident-coercion/<subtype>
              cause)

The following map shows, for each subtype, what keywords are required in
the data map, and what the generic portion of the string will be:

   {:illegal-type {:required #{},
                  :generic-str "Invalid type for ident coercion"},
   :strict-coercion-failure {:required #{},
                             :generic-str "Failed to strictly coerce to an ident"}}
sourceraw docstring

IndexSynccljprotocol

force-index-syncclj

(force-index-sync log)
(force-index-sync log index-name)
source

Logcljprotocol

The Log API protocol

The Log API protocol

tx-rangeclj

(tx-range log start-t end-t)

returns the range of transactions in log.

returns the range of transactions in log.

update-log-entry-indexclj

(update-log-entry-index log tx-num index-name index-root)

update-log-entry-indexesclj

(update-log-entry-indexes log tx-num index-roots)
sourceraw docstring

LogEntrycljprotocol

cur-max-idclj

(cur-max-id entry)

cur-tx-eidclj

(cur-tx-eid entry)

entry->datomsclj

(entry->datoms entry)
(entry->datoms entry index)

index-rootsclj

(index-roots entry)

packed-datomsclj

(packed-datoms entry)

packed-non-byte-datomsclj

(packed-non-byte-datoms entry)

packed-ref-type-datomsclj

(packed-ref-type-datoms entry)

tx-numclj

(tx-num entry)
source

LookupRefCachecljprotocol

update-lookup-ref-cache!clj

(update-lookup-ref-cache! cache resolved-id-map)
source

LookupRefResolutioncljprotocol

assert-conformant-lookup-refclj

(assert-conformant-lookup-ref resolver lookup-ref)

Returns true if the lookup-ref is structurally sound. If not, throws :resolve-entid/malformed-lookup-ref

Returns true if the lookup-ref is structurally sound. If not, throws :resolve-entid/malformed-lookup-ref

batch-resolve-lookup-refsclj

(batch-resolve-lookup-refs resolver lookup-refs)

Resolves a group of lookup refs in aggregate.

Resolves a group of lookup refs in aggregate.

batch-resolve-lookup-refs-strictclj

(batch-resolve-lookup-refs-strict db lookup-refs)

Like batch-resolve-lookup-refs, but throws :resolve-entid/no-such-eid if any of lookup-refs not found

Like batch-resolve-lookup-refs, but throws :resolve-entid/no-such-eid if any of lookup-refs not found

resolve-lookup-refclj

(resolve-lookup-ref resolver lookup-ref)

If an entity-id exists for the lookup-ref, return it, else nil.

If an entity-id exists for the lookup-ref, return it, else nil.

resolve-lookup-ref-strictclj

(resolve-lookup-ref-strict resolver lookup-ref)

Like resolve-lookup-ref, but throws :resolve-entid/no-such-eid if there is no entity id for the lookup-ref

Like resolve-lookup-ref, but throws :resolve-entid/no-such-eid if there is no entity id for the lookup-ref
source

MultiSelectDatomscljprotocol

multi-select-datomsclj

(multi-select-datoms source criteria)

[source [:index & coll-of-components]]

[source [:index & coll-of-components]]

multi-select-datoms-orderedclj

(multi-select-datoms-ordered source criteria)

[source [:index & coll-of-components]]

[source [:index & coll-of-components]]
source

raise-entid-coercioncljmacro

(raise-entid-coercion subtype detail-str data)
(raise-entid-coercion subtype detail-str data cause)

Records this raise-site under :entid-coercion/<subtype> in eva.error/eva-error-form and expands into:

   (raise :entid-coercion/<subtype>
          (str "<subtype-generic-str>: " detail-str)
          data
          cause)

The following map shows, for each subtype, what keywords are required in the data map, and what the generic portion of the string will be:

{:malformed-lookup-ref {:required #{}, :generic-str "Malformed lookup reference"}, :illegal-type {:required #{}, :generic-str "Invalid type for entity coercion"}, :strict-coercion-failure {:required #{}, :generic-str "Failed to strictly coerce to an entity id"}}

Records this raise-site under :entid-coercion/<subtype> in eva.error/eva-error-form and expands into:

       (raise :entid-coercion/<subtype>
              (str "<subtype-generic-str>: " detail-str)
              data
              cause)

The following map shows, for each subtype, what keywords are required in
the data map, and what the generic portion of the string will be:

   {:malformed-lookup-ref {:required #{},
                          :generic-str "Malformed lookup reference"},
   :illegal-type {:required #{},
                  :generic-str "Invalid type for entity coercion"},
   :strict-coercion-failure {:required #{},
                             :generic-str "Failed to strictly coerce to an entity id"}}
sourceraw docstring

raise-ident-coercioncljmacro

(raise-ident-coercion subtype detail-str data)
(raise-ident-coercion subtype detail-str data cause)

Records this raise-site under :ident-coercion/<subtype> in eva.error/eva-error-form and expands into:

   (raise :ident-coercion/<subtype>
          (str "<subtype-generic-str>: " detail-str)
          data
          cause)

The following map shows, for each subtype, what keywords are required in the data map, and what the generic portion of the string will be:

{:illegal-type {:required #{}, :generic-str "Invalid type for ident coercion"}, :strict-coercion-failure {:required #{}, :generic-str "Failed to strictly coerce to an ident"}}

Records this raise-site under :ident-coercion/<subtype> in eva.error/eva-error-form and expands into:

       (raise :ident-coercion/<subtype>
              (str "<subtype-generic-str>: " detail-str)
              data
              cause)

The following map shows, for each subtype, what keywords are required in
the data map, and what the generic portion of the string will be:

   {:illegal-type {:required #{},
                  :generic-str "Invalid type for ident coercion"},
   :strict-coercion-failure {:required #{},
                             :generic-str "Failed to strictly coerce to an ident"}}
sourceraw docstring

SelectDatomscljprotocol

select-datomsclj

(select-datoms source criteria)
source

wildcardclj

source

wildcard?clj

source

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

× close