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

Function update

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

Source from the content-addressed store, hash-verified

145 })
146 })
147 const update = (
148 update: S["update"]["Type"]
149 ): Effect.Effect<
150 S["Type"],
151 Schema.SchemaError | SqlError,
152 S["DecodingServices"] | S["update"]["EncodingServices"]
153 > =>
154 updateSchema(update).pipe(
155 Effect.catchTag("NoSuchElementError", Effect.die),
156 Effect.withSpan(`${options.spanPrefix}.update`, {
157 attributes: { id: (update as any)[idColumn] }
158 }, {
159 captureStackTrace: false
160 })
161 ) as any
162
163 const updateVoidSchema = SqlSchema.void({
164 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