Liking cljdoc? Tell your friends :D

mamulengo.durability


create-system-tables!clj/smultimethod

Create mamulengo tables to enable durability.

Right now you should create at least 3 tables: :table-tx Stores metadata information about the transaction e.g. instant, id. :table-schema Stores all the versions of the schema used by clients code. :table-mamulengo Stores information about the datoms of the transactions.

All the details about the field necessary are documented as specs in the mamulengo.specs-system-table namespace.

Create mamulengo tables to enable durability.

Right now you should create at least 3 tables:
:table-tx         Stores metadata information about the transaction e.g. instant, id.
:table-schema     Stores all the versions of the schema used by clients code.
:table-mamulengo  Stores information about the datoms of the transactions.

All the details about the field necessary are documented as specs in the
`mamulengo.specs-system-table` namespace.
sourceraw docstring

datoms-as-of!clj/smultimethod

Return a set of datoms that their transaction instant is less than or equal to instant.

:instant java.util.Date object of the time you request to investigate.

Return a set of datoms that their transaction instant is less than or equal to `instant`.

:instant      java.util.Date object of the time you request to investigate.
sourceraw docstring

datoms-since!clj/smultimethod

Return a set of datoms that their transaction instant is grater than or equal to instant.

:instant java.util.Date object of the time you request to investigate.

Return a set of datoms that their transaction instant is grater than or equal to `instant`.

:instant      java.util.Date object of the time you request to investigate.
sourceraw docstring

get-schema-at!clj/smultimethod

Return a map of the schema stored at a specific instant of time.

Return a map of the schema stored at a specific instant of time.
sourceraw docstring

get-system-schema!clj/smultimethod

Return a map of the last schema stored.

Return a map of the last schema stored.
sourceraw docstring

retrieve-all-facts!clj/smultimethod

Simply select all the datoms from the mamulengo table.

Simply select all the datoms from the mamulengo table.
sourceraw docstring

setup-clients-schema!clj/smultimethod

When start a new connection, stores the new schema if necessary.

It requires a comparison with the previous stored schema in the durable storage to decide if we must keep the provided schema or ignore.

When start a new connection, stores the new schema if necessary.

It requires a comparison with the previous stored schema in the durable
storage to decide if we must keep the provided schema or ignore.
sourceraw docstring

store!clj/smultimethod

Write the transaction to the durable storage.

It is important that the returned value of this function be the timestamp saved in the metadata of :table-tx. This will be used to enrich the default return value of datascript.

Write the transaction to the durable storage.

It is important that the returned value of this function be the
`timestamp` saved in the metadata of `:table-tx`. This will be used
to enrich the default return value of datascript.
sourceraw docstring

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

× close