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

Function makeClient

packages/sql/sqlite-do/test/Client.test.ts:178–182  ·  view source on GitHub ↗
(config: SqliteClient.SqliteClientConfig)

Source from the content-addressed store, hash-verified

176}
177
178const makeClient = (config: SqliteClient.SqliteClientConfig) =>
179 SqliteClient.make(config).pipe(
180 Effect.scoped,
181 Effect.provide(Reactivity.layer)
182 )
183
184const hasForbiddenTransactionSql = (db: FakeSqlStorage) =>
185 db.statements.some((statement) => /^(BEGIN|COMMIT|ROLLBACK|SAVEPOINT)\b/i.test(normalizeSql(statement)))

Callers 1

Client.test.tsFile · 0.70

Calls 3

pipeMethod · 0.65
makeMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected