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

Function returning

packages/effect/src/sql/Statement.ts:370–376  ·  view source on GitHub ↗
(this: RecordInsertHelper, sql: string | Identifier | Fragment)

Source from the content-addressed store, hash-verified

368 [SegmentTypeId]: SegmentTypeId,
369 _tag: "RecordInsertHelper" as const,
370 returning(this: RecordInsertHelper, sql: string | Identifier | Fragment) {
371 const self = Object.create(Object.getPrototypeOf(this))
372 Object.assign(self, this, {
373 returningIdentifier: typeof sql === "string" || isFragment(sql) ? sql : fragment([sql])
374 })
375 return self
376 }
377}
378
379/**

Callers

nothing calls this directly

Calls 3

isFragmentFunction · 0.85
fragmentFunction · 0.85
assignMethod · 0.80

Tested by

no test coverage detected