-
- All Superinterfaces:
Scope
@Internal public interface MigrationContext extends Scope
The context in which aMigrationis executed.This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
- Author:
- Lukas Eder
- See Also:
MigrationListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VersionmigrationFrom()QueriesmigrationQueries()VersionmigrationTo()Queriesqueries()VersionqueriesFrom()VersionqueriesTo()Queryquery()The currentQuerythat is being executed.
-
-
-
Method Detail
-
migrationFrom
Version migrationFrom()
TheVersionfrom which aMigrationhas started.migrationFrom()andmigrationTo()versions need not be consecutive versions for any given migration. If a migration jumps a few versions, these two methods will only return the endpoints.This is available on all
MigrationListenerevents.
-
migrationTo
Version migrationTo()
TheVersionto which aMigrationis headed.migrationFrom()andmigrationTo()versions need not be consecutive versions for any given migration. If a migration jumps a few versions, these two methods will only return the endpoints.This is available on all
MigrationListenerevents.
-
migrationQueries
Queries migrationQueries()
The complete set ofQueriesthat are executed betweenmigrationFrom()andmigrationTo().This is available on all
MigrationListenerevents.
-
queriesFrom
Version queriesFrom()
TheVersionfrom which an individual set ofQuerieshas started.queriesFrom()andqueriesTo()versions are consecutive versions in a migration. If a migration jumps a few versions, these two methods might return those intermediate versions on these events:
-
queriesTo
Version queriesTo()
TheVersionto which an individual set ofQueriesis headed.queriesFrom()andqueriesTo()versions are consecutive versions in a migration. If a migration jumps a few versions, these two methods might return those intermediate versions on these events:
-
queries
Queries queries()
The complete set ofQueriesthat are executed betweenqueriesFrom()andqueriesTo().This is available on the same
MigrationListenerevents asqueriesFrom()andqueriesTo().
-
query
Query query()
The currentQuerythat is being executed.This is available on
MigrationListener.queryStart(MigrationContext)andMigrationListener.queryEnd(MigrationContext).
-
-