How are connections managed in Flyway command line?

95 views Asked by At

I couldn't find this in the docs (and am too lazy to read the code) - does Flyway CL use a single connection for the entire task, including callbacks?

Specifically, I'd like to know if I can use beforeMigrate (or beforeEachMigrate) to set database session parameters.

1

There are 1 answers

0
Axel Fontaine On BEST ANSWER

Two connections: one for the metadata table and one for the migrations. So yes, your assumption should work.