Skip to content

Add configuration setting for transaction isolation level (mysql)#1380

Open
IceShack wants to merge 1 commit intogolang-migrate:masterfrom
IceShack:feature/tx-isolation
Open

Add configuration setting for transaction isolation level (mysql)#1380
IceShack wants to merge 1 commit intogolang-migrate:masterfrom
IceShack:feature/tx-isolation

Conversation

@IceShack
Copy link
Copy Markdown

For now the transaction isolation level is hardcoded as SERIALIZABLE in the mysql driver. Percona-XtraDB-Cluster doesn't allow SERIALIZABLE isolation with pxc_strict_mode = ENFORCING.
This PR adds the option to change the isolation level either via Config or dsn parameter.

@IceShack IceShack changed the title Add configuration setting for transaction isolation level Add configuration setting for transaction isolation level (mysql) Mar 31, 2026
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 54.293% (-0.1%) from 54.432%
when pulling e1bb49a on IceShack:feature/tx-isolation
into 2bd822b on golang-migrate:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants