db method

JsRef db(
  1. JsRef conn
)

Creates the underlying immutable database from a connection.

Returns database Id.

Implementation

JsRef db(JsRef conn) {
  return JsRef.define(
      context, 'databases', "vendor.ds.db(${conn.toJsCode()});");
}