MCPcopy Create free account
hub / github.com/effect-app/libs / parseRow

Function parseRow

packages/infra/src/Store/SQL.ts:36–43  ·  view source on GitHub ↗
(
  row: { id: string; _etag: string | null; data: string },
  idKey: PropertyKey,
  defaultValues: Partial<Encoded>
)

Source from the content-addressed store, hash-verified

34 if (e._tag === "OptimisticConcurrencyException") return e as OptimisticConcurrencyException
35 }
36 return toDatabaseError(e)
37}
38
39export type WithNsTransactionFn = <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
40
41export class WithNsTransaction
42 extends Context.Service<WithNsTransaction, WithNsTransactionFn>()("effect-app/WithNsTransaction")
43{}
44
45/** @internal */
46export const parseRow = <Encoded extends FieldValues>(

Callers 3

makeSQLStoreIntFunction · 0.70
makeSQLiteStorePerNsFunction · 0.70
sql-store.test.tsFile · 0.50

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…