serializable method

Future serializable(
  1. dynamic db,
  2. Object? opts
)

Converts db into a data structure (not string!) that can be fed to serializer of your choice (e.g. js/JSON.stringify in CLJS, cheshire.core/generate-string or jsonista.core/write-value-as-string in CLJ).

On JVM, serializable holds a global lock that prevents any two serializations to run in parallel (an implementation constraint, be aware).

Implementation

Future serializable(db, Object? opts) {
  throw UnimplementedError();
}