jaemk / migrant_lib

Embeddable migration management
23 stars 8 forks source link

Support passing a connection to use #26

Open jaemk opened 4 years ago

jaemk commented 4 years ago

Instead of creating a new connection for each operation, which is cruft related to #25 . This would also unblock #6

elpiel commented 3 years ago

This would be great! I happen to have an issue now with migrant when using Postgres. I want to setup our tests to use separate schemas, but since every time migrant is making a new connection and I can't SET SESSION SCHEMA test_X.

I good starting point would be to:

These are my thoughts, I thought I would share them with you. What do you think?