MCPcopy Create free account
hub / github.com/anomalyco/console / fromDriver

Function fromDriver

packages/core/src/util/sql.ts:57–59  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

55 return "longtext";
56 },
57 fromDriver(value) {
58 return JSON.parse(gunzipSync(Buffer.from(value, "binary")).toString());
59 },
60 toDriver(value: TData) {
61 return gzipSync(Buffer.from(JSON.stringify(value))).toString("binary");
62 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected