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

Function makeClient

packages/sql-sqlite-do/test/Client.test.ts:89–95  ·  view source on GitHub ↗
(storage: FakeDurableObjectStorage)

Source from the content-addressed store, hash-verified

87}
88
89const makeClient = (storage: FakeDurableObjectStorage) =>
90 SqliteClient.make({
91 db: storage.sql as unknown as SqlStorage,
92 storage: storage as unknown as DurableObjectStorage
93 } as SqliteClient.SqliteClientConfig).pipe(
94 Effect.provide(Reactivity.layer)
95 )
96
97const hasTransactionSql = (storage: FakeDurableObjectStorage) =>
98 storage.sql.statements.some((statement) => transactionSql.test(statement.trim()))

Callers 1

Client.test.tsFile · 0.70

Calls 3

pipeMethod · 0.65
makeMethod · 0.65
provideMethod · 0.65

Tested by

no test coverage detected