MCPcopy Create free account
hub / github.com/LutrisEng/datom-rs / new_connection

Function new_connection

datom-node/src/lib.rs:24–28  ·  view source on GitHub ↗
(mut cx: FunctionContext)

Source from the content-addressed store, hash-verified

22}
23
24fn new_connection(mut cx: FunctionContext) -> JsResult<JsBox<BoxableConnection>> {
25 Ok(cx.boxed(BoxableConnection(Connection::new(Box::new(
26 RedBlackTreeSetStorage::new(),
27 )))))
28}
29
30fn connection_latest_t(mut cx: FunctionContext) -> JsResult<JsNumber> {
31 let arg: Handle<JsBox<BoxableConnection>> = cx.argument(0)?;

Callers

nothing calls this directly

Calls 1

BoxableConnectionClass · 0.85

Tested by

no test coverage detected