DustEcto.Transport.SDK (DustEcto v0.1.2)

Copy Markdown View Source

WebSocket-backed transport — delegates every call to the configured Dust facade module (default Dust). Uses the SDK pre-work landed in the same monorepo: sync write semantics on every op, subtree-aware reads, and :committed subscription mode for exactly-once delivery.

Returns:

  • {:ok, ...} shapes match the Repo contract — %{store_seq:} for writes, full entry maps for reads.
  • {:error, %DustEcto.Error{}} for everything that's not a 2xx analogue. Network-shaped failures from the SDK (e.g. :timeout) get translated to the right kind.

All callbacks are documented on DustEcto.Transport.