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

Function onCustom

packages/sql-mssql/src/MssqlClient.ts:491–497  ·  view source on GitHub ↗
(type, placeholder)

Source from the content-addressed store, hash-verified

489 ]
490 },
491 onCustom(type, placeholder) {
492 switch (type.kind) {
493 case "MssqlParam": {
494 return [placeholder(undefined), [type] as any]
495 }
496 }
497 },
498 onInsert(columns, placeholders, values, returning) {
499 const returningSql = returning ? returning[0] === "*" ? " OUTPUT INSERTED.*" : ` OUTPUT ${returning[0]}` : ""
500 return [

Callers

nothing calls this directly

Calls 1

placeholderFunction · 0.70

Tested by

no test coverage detected