golang-migrate / migrate

Database migrations. CLI and Golang library.
Other
14.48k stars 1.34k forks source link

Add sqlite3 WithConnection support. #1107

Open SpeedReach opened 3 weeks ago

SpeedReach commented 3 weeks ago

It's quite common to use the sqlite3 in memory feature to setup a simple test db. But the currently support closes the in memory database after migration which is basically useless. With the WithConnection support, we can pass in only a connection and continue to run tests after migration is setup.

coveralls commented 3 weeks ago

Coverage Status

coverage: 56.309% (-0.03%) from 56.335% when pulling 21fe4d6dde5f1024180838f7b1ba2577a6be4a97 on SpeedReach:master into 04b36ebaac41964a54faa3e4b35254963dd88a3d on golang-migrate:master.

coveralls commented 3 weeks ago

Coverage Status

coverage: 56.309% (-0.03%) from 56.335% when pulling ae2fd3f65da39c2623d2b756fb7694a83cd66d7f on SpeedReach:master into 1585b870f8712a60e6d833599e462b7b4db1a697 on golang-migrate:master.