Transaction.statements
function · packages/cms-drizzle/src/index.ts:114
statements<A, E>(
work: Effect.Effect<A, E, DrizzleDatabase>,
): Effect.Effect<A, E, DrizzleDatabase>begin, the work, then commit or rollback, as statements. For a database
that is one connection, such as a SQLite file, which it takes turns at: the
operations of this package wait for one another. A write of your own on the
same connection does not, so make it inside Transaction.statements too.
Over a pool each statement may take a different connection: use drizzle there.