Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql/postgres: disable locking capability in crdb mode #1421

Merged
merged 1 commit into from
Jan 24, 2023
Merged

Conversation

a8m
Copy link
Member

@a8m a8m commented Jan 24, 2023

No description provided.

Comment on lines +22 to +30
noLocker interface {
migrate.Driver
migrate.Snapshoter
migrate.CleanChecker
schema.Normalizer
}
noLockDriver struct {
noLocker
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat trick 💯

@a8m a8m merged commit 93eb984 into master Jan 24, 2023
@a8m a8m deleted the crdbnolock branch January 24, 2023 20:11
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