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

Function makeClient

repos/effect/packages/sql/sqlite-do/test/Client.test.ts:172–176  ·  view source on GitHub ↗
(config: SqliteClient.SqliteClientConfig)

Source from the content-addressed store, hash-verified

170}
171
172const makeClient = (config: SqliteClient.SqliteClientConfig) =>
173 SqliteClient.make(config).pipe(
174 Effect.scoped,
175 Effect.provide(Reactivity.layer)
176 )
177
178const hasForbiddenTransactionSql = (db: FakeSqlStorage) =>
179 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…