emptyDb method

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

Creates an empty database with an optional schema.

Implementation

JsRef emptyDb({Schema? schema}) {
  return JsRef.define(
      context, 'databases', "vendor.ds.empty_db(${jsonEncode(schema)});");
}