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

Function onCustom

packages/sql/pg/src/PgClient.ts:863–876  ·  view source on GitHub ↗
(type, placeholder, withoutTransform)

Source from the content-addressed store, hash-verified

861 ]
862 },
863 onCustom(type, placeholder, withoutTransform) {
864 switch (type.kind) {
865 case "PgJson": {
866 return [
867 placeholder(undefined),
868 [
869 withoutTransform || transformValue === undefined
870 ? type.paramA
871 : transformValue(type.paramA)
872 ]
873 ]
874 }
875 }
876 }
877 })
878}
879

Callers

nothing calls this directly

Calls 2

transformValueFunction · 0.85
placeholderFunction · 0.70

Tested by

no test coverage detected