prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
582 stars 61 forks source link

Allow setting Tx isolation on Tx start #384

Closed dpetrick closed 2 years ago

dpetrick commented 2 years ago

Allows setting an IsolationLevel when starting a new transaction. The underlying databases validate what levels of the ANSI + Snapshot levels are appropriate. Additionally, some databases require SET of the isolation level before a BEGIN of a transaction.

Functional testing is thin, because it's hard to validate the isolation levels without either: