MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / decodeJsonColumn

Function decodeJsonColumn

packages/core/sdk/src/executor.ts:879–883  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

877const decodeJsonFromString = Schema.decodeUnknownOption(Schema.UnknownFromJsonString);
878
879const decodeJsonColumn = (value: unknown): unknown => {
880 if (value === null || value === undefined) return undefined;
881 if (typeof value !== "string") return value;
882 return decodeJsonFromString(value).pipe(Option.getOrElse(() => value));
883};
884
885const rowToIntegration = (
886 row: IntegrationRow,

Callers 12

rowToIntegrationRecordFunction · 0.85
connectionItemIdsFunction · 0.85
rowToToolFunction · 0.85
markRefreshGrantDeadFunction · 0.85
toolSchemaFunction · 0.85
policiesResolveFunction · 0.85
executeFunction · 0.85
invokeWithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected