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

Function insert

packages/effect/src/unstable/sql/SqlModel.ts:103–113  ·  view source on GitHub ↗
(
      insert: S["insert"]["Type"]
    )

Source from the content-addressed store, hash-verified

101 })
102 })
103 const insert = (
104 insert: S["insert"]["Type"]
105 ): Effect.Effect<
106 S["Type"],
107 Schema.SchemaError | SqlError,
108 S["DecodingServices"] | S["insert"]["EncodingServices"]
109 > =>
110 insertSchema(insert).pipe(
111 Effect.catchTag("NoSuchElementError", Effect.die),
112 Effect.withSpan(`${options.spanPrefix}.insert`, {}, { captureStackTrace: false })
113 ) as any
114
115 const insertVoidSchema = SqlSchema.void({
116 Request: Model.insert,

Callers 3

fromIterableFunction · 0.50
trie.tsFile · 0.50
compactFunction · 0.50

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected