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.
coverage: 56.309% (-0.03%) from 56.335%
when pulling 21fe4d6dde5f1024180838f7b1ba2577a6be4a97 on SpeedReach:master
into 04b36ebaac41964a54faa3e4b35254963dd88a3d on golang-migrate:master.
coverage: 56.309% (-0.03%) from 56.335%
when pulling ae2fd3f65da39c2623d2b756fb7694a83cd66d7f on SpeedReach:master
into 1585b870f8712a60e6d833599e462b7b4db1a697 on golang-migrate:master.
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.