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

Function onRecordUpdate

packages/sql/pg/src/PgClient.ts:855–862  ·  view source on GitHub ↗
(placeholders, valueAlias, valueColumns, values, returning)

Source from the content-addressed store, hash-verified

853 } :
854 escape,
855 onRecordUpdate(placeholders, valueAlias, valueColumns, values, returning) {
856 return [
857 `(values ${placeholders}) AS ${valueAlias}${valueColumns}${returning ? ` RETURNING ${returning[0]}` : ""}`,
858 returning ?
859 values.flat().concat(returning[1]) :
860 values.flat()
861 ]
862 },
863 onCustom(type, placeholder, withoutTransform) {
864 switch (type.kind) {
865 case "PgJson": {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected