Streaming & Transparency Log

StreamingClient.watch is a live, ACL-filtered SSE change feed; query_arrow_raw streams Arrow IPC. LogClient is the hash-chained transparency log (append + leaf/head reads) — the tamper-evident audit spine.

8 methods across this domain. Signatures, parameters (incl. keyword-only tunable defaults), and the three SDK spellings are ported from the live SDK source; flagship methods carry a hand-written When to use + example.

LogClient

append(data)

append(data)`

  • Pythonclient.logclient.append(data)
  • TypeScriptappend(data)
  • GoAppend(data)

Parameters: data

head()`

  • Pythonclient.logclient.head()
  • TypeScripthead()
  • GoHead()

load_leaves(since=0, limit=1000)

load_leaves(since=0, limit=1000)`

  • Pythonclient.logclient.load_leaves(since=0, limit=1000)
  • TypeScriptloadLeaves(opts)
  • GoLoadLeaves()

Parameters: since=0, limit=1000

StreamingClient

watch(sql, purpose, reconnect=True)

When to use. Live, ACL-filtered SSE change feed on a type — reactive pipelines.

  • Pythonclient.streamingclient.watch(sql, purpose, reconnect=True)
  • TypeScriptwatch(sql, purpose, opts)
  • GoWatch(sql)

Parameters: sql, purpose, reconnect=True

Example

for evt in StreamingClient.from_client(relata).watch("Person"):
    print(evt)
for await (const evt of relata.streaming.watch("Person")) { console.log(evt); }

alerts(reconnect=True)

alerts(reconnect=True)`

  • Pythonclient.streamingclient.alerts(reconnect=True)
  • TypeScriptalerts(opts)
  • GoAlerts()

Parameters: reconnect=True

query_arrow_raw(sql, purpose=None)

query_arrow_raw(sql, purpose=None)`

  • Pythonclient.streamingclient.query_arrow_raw(sql, purpose=None)
  • TypeScriptqueryArrowRaw(sql, opts)
  • GoQueryArrowRaw(sql)

Parameters: sql, purpose=None

query_rows(sql, purpose=None)

query_rows(sql, purpose=None)`

  • Pythonclient.streamingclient.query_rows(sql, purpose=None)
  • TypeScriptqueryRows(sql, opts)
  • GoQueryRows(sql)

Parameters: sql, purpose=None

watch_stream(type, since=None, reconnect=True)

watch_stream(type, since=None, reconnect=True)`

  • Pythonclient.streamingclient.watch_stream(type, since=None, reconnect=True)

Parameters: type, since=None, reconnect=True