(body: (db: SqliteTestFumaDb) => Effect.Effect<A, E>)
| 19 | const THROTTLE_MS = 60_000; |
| 20 | |
| 21 | const withDb = <A, E>(body: (db: SqliteTestFumaDb) => Effect.Effect<A, E>): Effect.Effect<A, E> => |
| 22 | Effect.acquireUseRelease( |
| 23 | Effect.promise(() => createSqliteTestFumaDb({ tables: collectTables() })), |
| 24 | body, |
| 25 | (db) => Effect.promise(() => db.close()), |
| 26 | ); |
| 27 | |
| 28 | // Read the way PR 1.3's readers will: through a tenant-bound query context. |
| 29 | // `last_seen_at` is a bigint column stored as a SQLite blob, so a raw SQL read |
no test coverage detected