New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statement-level callbacks: before, after and after error #1289
Comments
What exactly is your use case for this? |
Unfortunately it's nearly 2 years since I submitted the request & I haven't worked with flyway since. |
@DanskerDave Thanks. I'm closing this now since there hasn't been anybody else in this time needing this. |
This has now been implemented with 6 new callbacks:
They allow for
|
As I've been unable to find a way to process multiple queries with a single Statement in Oracle with JDBC, I assume that for Oracle somewhere in Flyway each *.sql file is parsed into a Collection of Statements before being executed one-by-one (in JdbcTemplate oder?).
If that is the case, it would be nice to have yet another pair of FlywayCallback methods...
before/afterEachMigrateStatement, say
...to handle each Statement.
The signature should be something like:
void beforeEachMigrateStatement(Connection con, MigrationInfo info, ?String? statement);
A Statement-level Error Callback similar to that described in Feature Request #1283 would then be quite useful too...
The text was updated successfully, but these errors were encountered: