MCPcopy Create free account
hub / github.com/Effect-TS/effect / onCustom

Function onCustom

packages/sql/pglite/src/PgliteClient.ts:416–429  ·  view source on GitHub ↗
(type, placeholder, withoutTransform)

Source from the content-addressed store, hash-verified

414 ]
415 },
416 onCustom(type, placeholder, withoutTransform) {
417 switch (type.kind) {
418 case "PgJson": {
419 return [
420 placeholder(undefined),
421 [
422 withoutTransform || transformValue === undefined
423 ? type.paramA
424 : transformValue(type.paramA)
425 ]
426 ]
427 }
428 }
429 }
430 })
431}
432

Callers

nothing calls this directly

Calls 2

transformValueFunction · 0.85
placeholderFunction · 0.70

Tested by

no test coverage detected