createConn method

JsRef createConn({
  1. Schema? schema,
})

Creates a mutable reference (a “connection”) to an empty immutable database inside JsRuntime.

Returns the connection ref.

Implementation

JsRef createConn({Schema? schema}) {
  return JsRef.define(context, 'connections',
      "vendor.ds.create_conn(${jsonEncode(schema)});");
}