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

Function update

packages/effect/src/sql/SqlModel.ts:153–167  ·  view source on GitHub ↗
(
      update: S["update"]["Type"]
    )

Source from the content-addressed store, hash-verified

151 })
152 })
153 const update = (
154 update: S["update"]["Type"]
155 ): Effect.Effect<
156 S["Type"],
157 Schema.SchemaError | SqlError,
158 S["DecodingServices"] | S["update"]["EncodingServices"]
159 > =>
160 updateSchema(update).pipe(
161 Effect.catchTag("NoSuchElementError", Effect.die),
162 Effect.withSpan(`${options.spanPrefix}.update`, {
163 attributes: { id: (update as any)[idColumn] }
164 }, {
165 captureStackTrace: false
166 })
167 ) as any
168
169 const updateVoidSchema = SqlSchema.void({
170 Request: Model.update,

Callers 7

TxRef.tsFile · 0.50
decrementFunction · 0.50
incrementFunction · 0.50
toggleFunction · 0.50
TxChunk.tsFile · 0.50
SubscriptionRef.tsFile · 0.50
updateServiceScopedFunction · 0.50

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected