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

Function selectStore

packages/effect/src/eventlog/SqlEventLogServerEncrypted.ts:528–532  ·  view source on GitHub ↗
(scope: string)

Source from the content-addressed store, hash-verified

526 "no_op_count, open_stage, next_sweep_at, sweep_lease_until, sweep_lease_owner, pruned_through"
527 )
528 const selectStore = (scope: string) =>
529 Effect.map(
530 query(sql`SELECT ${storeColumns} FROM ${storesSql} WHERE scope = ${scope}`),
531 ([row]) => row === undefined ? undefined : toStoreRow(row)
532 )
533 // Row locks held for the rest of the transaction. SQLite transactions take
534 // the database write lock instead.
535 const lockHint = sql.onDialectOrElse({

Callers 1

makeStorageFunction · 0.85

Calls 3

toStoreRowFunction · 0.85
queryFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected