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

Function recordInsertHelper

packages/effect/src/unstable/sql/Statement.ts:271–277  ·  view source on GitHub ↗
(
  value: ReadonlyArray<Record<string, unknown>>
)

Source from the content-addressed store, hash-verified

269 * @since 4.0.0
270 */
271export const recordInsertHelper = (
272 value: ReadonlyArray<Record<string, unknown>>
273): RecordInsertHelper =>
274 Object.assign(Object.create(RecordInsertHelperProto), {
275 value,
276 returningIdentifier: undefined
277 })
278
279/**
280 * Helper segment for compiling multi-row update values with a table alias and

Callers 1

insertFunction · 0.85

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected