The function migratus.core/select-migrations never calls disconnect and so if called repeatedly leaks a DB connection on each call.
I use a DB pool and was testing my migrations and migratus and so was calling migratus.core/completed-list and migratus.core/pending-list a lot and that is when I discovered this issue since my pool would run out of connections pretty quickly.
The function
migratus.core/select-migrations
never calls disconnect and so if called repeatedly leaks a DB connection on each call.I use a DB pool and was testing my migrations and migratus and so was calling
migratus.core/completed-list
andmigratus.core/pending-list
a lot and that is when I discovered this issue since my pool would run out of connections pretty quickly.