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

Function onRecordUpdate

packages/sql/pglite/src/PgliteClient.ts:408–415  ·  view source on GitHub ↗
(placeholders, valueAlias, valueColumns, values, returning)

Source from the content-addressed store, hash-verified

406 } :
407 escape,
408 onRecordUpdate(placeholders, valueAlias, valueColumns, values, returning) {
409 return [
410 `(values ${placeholders}) AS ${valueAlias}${valueColumns}${returning ? ` RETURNING ${returning[0]}` : ""}`,
411 returning ?
412 values.flat().concat(returning[1]) :
413 values.flat()
414 ]
415 },
416 onCustom(type, placeholder, withoutTransform) {
417 switch (type.kind) {
418 case "PgJson": {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected