Liking cljdoc? Tell your friends :D

dev.kwill.datomic-backup.impl


attr-value-typeclj

(attr-value-type db attr)
source

bootstrap-datomsclj

(bootstrap-datoms db)
source

bootstrap-datoms-stop-txclj

(bootstrap-datoms-stop-tx db)
source

conn?clj

(conn? x)
source

current-datom?clj

(current-datom? db datom)
source

datom-batch-tx-dataclj

(datom-batch-tx-data source-db datoms source-eid->dest-eid lookup-dest-eid-fn)
source

datomic-internal-attrsclj

Idents managed by Datomic that should not be added to user-land schema.

Idents managed by Datomic that should not be added to user-land schema.
sourceraw docstring

datomic-schema-ident?clj

(datomic-schema-ident? k)
source

datum-readerclj

(datum-reader [e a v tx added])
source

filter-datoms-by-currently-existingclj

(filter-datoms-by-currently-existing db datoms)
source

filter-map->fnclj

(filter-map->fn db {:keys [include-attrs exclude-attrs]})
source

format-durationclj

(format-duration ms)

Format milliseconds as human-readable duration

Format milliseconds as human-readable duration
sourceraw docstring

get-old->new-ident-lookupclj

(get-old->new-ident-lookup db)
source

initial-eid-mappingclj

(initial-eid-mapping dest-db)
source

last-backed-up-tx-idclj

(last-backed-up-tx-id f)
source

max-tx-id-from-sourceclj

(max-tx-id-from-source source)
source

next-dataclj

(next-data tx-report)
source

next-datoms-stateclj

(next-datoms-state {:keys [source-eid->dest-eid db-before] :as acc}
                   source-db
                   datoms
                   lookup-dest-eid-fn
                   tx!)
source

next-file-stateclj

(next-file-state acc datoms writer)
source

next-progress-reportclj

(next-progress-report state progress cur-tx-id max-tx-id)
source

no-history-transform-fnclj

(no-history-transform-fn db remove-empty-transactions?)
source

q-datomic-internal-ident->eidclj

(q-datomic-internal-ident->eid db)
source

q-datomic-internal-source-eid->dest-eidclj

(q-datomic-internal-source-eid->dest-eid source-db dest-db)
source

q-last-txclj

(q-last-tx db)
source

q-schema-lookupclj

(q-schema-lookup db)
source

read-edn-stringclj

(read-edn-string s)
source

read-transactions-to-chan!clj

(read-transactions-to-chan! conn argm dest-ch)

Read transactions to a channel with retry and resumption. Similar to read-datoms-to-chan! but for transactions.

Parameters:

  • conn: Datomic connection
  • argm: Map with keys:
    • :start - Starting t or tx value (inclusive, optional)
    • :stop - Stopping t or tx value (exclusive, optional)
    • :xf - Transducer to apply to transaction datoms (optional)
  • dest-ch: Channel to write transactions to
Read transactions to a channel with retry and resumption.
Similar to read-datoms-to-chan! but for transactions.

Parameters:
- conn: Datomic connection
- argm: Map with keys:
  - :start - Starting t or tx value (inclusive, optional)
  - :stop - Stopping t or tx value (exclusive, optional)
  - :xf - Transducer to apply to transaction datoms (optional)
- dest-ch: Channel to write transactions to
sourceraw docstring

schema-result->lookupclj

(schema-result->lookup user-schema)
source

separatorclj

source

t->txclj

(t->tx conn t)
source

tempidclj

(tempid x)
source

tid-prefixclj

source

transactions-from-connclj

(transactions-from-conn source-conn
                        {:keys [start stop transform-datoms timeout]})
source

transactions-from-fileclj

(transactions-from-file reader
                        {:keys [transform-datoms]
                         :or {transform-datoms identity}})
source

transactions-from-sourceclj

(transactions-from-source source arg-map)
source

tuple-element-typesclj

(tuple-element-types db attr)

Returns vector of value types for tuple elements, or nil if not a tuple. Handles three tuple variants:

  • Composite (:db/tupleAttrs) - gets valueType of each constituent
  • Heterogeneous (:db/tupleTypes) - returns explicit types
  • Homogeneous (:db/tupleType) - repeats single type
Returns vector of value types for tuple elements, or nil if not a tuple.
Handles three tuple variants:
- Composite (:db/tupleAttrs) - gets valueType of each constituent
- Heterogeneous (:db/tupleTypes) - returns explicit types
- Homogeneous (:db/tupleType) - repeats single type
sourceraw docstring

tx->tclj

(tx->t conn tx)
source

tx-contains-only-tx-datoms?clj

(tx-contains-only-tx-datoms? txInstance-attr-eid datoms)
source

tx-instant-attr-idclj

(tx-instant-attr-id db)
source

with-timingcljmacro

(with-timing & body)

Execute body and return [result elapsed-ms]

Execute body and return [result elapsed-ms]
sourceraw docstring

write-state-file!clj

(write-state-file! state-file {:keys [:source-eid->dest-eid :last-source-tx]})
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close