Reproduce Kysely Planetscale Issue #20
A repo to reliably reproduce an issue introduced in Kysely Planetscale 1.2.1 which causes locks to not be released when an error occurs inside a transaction.
-
Install packages
npm i
-
Set up
.env
file by renaming.env.example
to.env
and filling it out with your fresh planetscale db connection details -
Run migrations
npm run migrate:latest
(if you want to revert tonpm run migrate:none
) -
Run the test to reproduce the issue
npm run reproduce
Please note that it may occasionally pass the test just run again if it does so.