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

Function failDrop

packages/sql/sqlite-node/test/SqlEventJournal.test.ts:559–562  ·  view source on GitHub ↗
(statement)

Source from the content-addressed store, hash-verified

557 const open = (client: SqlClient.SqlClient) =>
558 SqlEventJournal.make().pipe(Effect.provideService(SqlClient.SqlClient, client))
559 const failDrop: Statement.Transformer = (statement) =>
560 statement.compile()[0].includes("DROP TABLE")
561 ? Effect.die("interrupted migration")
562 : Effect.succeed(statement)
563 const interrupted = yield* Effect.exit(
564 open(sql).pipe(Effect.provideService(Statement.CurrentTransformer, failDrop))
565 )

Callers

nothing calls this directly

Calls 2

compileMethod · 0.80
succeedMethod · 0.45

Tested by

no test coverage detected