The standalone transactor: a TCP server owning the database's single writer. Peers and clients speak the wire protocol (docs/wire-protocol.md); writes serialize through one lock into a single total order, then commit to durable storage. Reads run against the transactor's db value, pinned to a t (as-of), a since view, or history when the request asks.
The standalone transactor: a TCP server owning the database's single writer. Peers and clients speak the wire protocol (docs/wire-protocol.md); writes serialize through one lock into a single total order, then commit to durable storage. Reads run against the transactor's db value, pinned to a t (as-of), a since view, or history when the request asks.
(-main config-path & _)(parse-config s)The transactor config file: EDN map with :host, :port, :storage, :path.
The transactor config file: EDN map with :host, :port, :storage, :path.
(start! {:keys [host port storage path] :or {port 0 storage :memory}})Start a transactor. Opts: :port (0 picks an ephemeral port), :host, :storage (:memory or :file), :path (for file storage). Returns a map with :port, :stop!, :acceptor, :conn. The transactor owns one connection; concurrent client writes serialize through it.
Start a transactor. Opts: :port (0 picks an ephemeral port), :host, :storage (:memory or :file), :path (for file storage). Returns a map with :port, :stop!, :acceptor, :conn. The transactor owns one connection; concurrent client writes serialize through it.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |