GitShow/BurntSushi/migration
BurntSushi

migration

Package migration for Golang automatically handles versioning of a database schema by applying a series of migrations supplied by the client.

by BurntSushi
Star on GitHubFork

Go

76 stars5 forks1 contributorQuiet · 12y agoSince 2014Unlicense

Meet the team

See all 1 on GitHub →
BurntSushi
BurntSushi10 contributions

Languages

View on GitHub →
Go100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
skhoroshavin
Question: is it safe to use with multiple service replicas?ClosedIssue

Let's say we have 10 replicas of stateless service talking to database that we need to update (and that update includes new migration), and we start updating them by batches of 2 for example. Do I understand it correctly that this should still work, because schema update is transactional, so only the transaction that committed first would be actually committed, and second would fail without any ill effects except that db "wrapped connection" itself would fail and need to be recreated? Or there are some other gotchas with that approach? Also, did you consider adding: either retry logic in case of failed commit or using explicit database lock and if not, then why? So I guess answer to question in title is "yes", but I'd like to have a better confidence that my understanding is correct )

skhoroshavin · 5y ago
Structured data for AI agents

Repository: BurntSushi/migration. Description: Package migration for Golang automatically handles versioning of a database schema by applying a series of migrations supplied by the client. Stars: 76, Forks: 5. Primary language: Go. Languages: Go (100%). License: Unlicense. Open PRs: 0, open issues: 0. Last activity: 12y ago. Community health: 42%. Top contributors: BurntSushi.

·@ofershap

Replace github.com with gitshow.dev