peterldowns / pgtestdb

quickly run tests in their own temporary, isolated, postgres databases
MIT License
163 stars 13 forks source link

Add a Bun migrator #7

Closed peterldowns closed 3 months ago

peterldowns commented 7 months ago

Per discussion on #6, Kodergarten is using uptrace/bun for migrations. This issue is to track the addition of a Bun-compatible migrator to the project.

While Bun supports golang code migrations, the implementation will most likely only be able to support .sql-file migrations, similar to the golangmigrator. This is due to needing a hash of each migration's contents in order to correctly implement the migrator's Hash() method.

peterldowns commented 3 months ago

Done thanks to @BrynBerkeley !