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

Function hasForbiddenTransactionSql

packages/sql/sqlite-do/test/Client.test.ts:184–185  ·  view source on GitHub ↗
(db: FakeSqlStorage)

Source from the content-addressed store, hash-verified

182 )
183
184const hasForbiddenTransactionSql = (db: FakeSqlStorage) =>
185 db.statements.some((statement) => /^(BEGIN|COMMIT|ROLLBACK|SAVEPOINT)\b/i.test(normalizeSql(statement)))
186
187describe("Client", () => {
188 it.effect("classifies native errors and releases the connection for the next statement", () =>

Callers 1

Client.test.tsFile · 0.85

Calls 2

normalizeSqlFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected