-
- All Superinterfaces:
Scope
@Internal public interface MigrationContext extends Scope
The context in which aMigration
is 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 Version
migrationFrom()
Queries
migrationQueries()
Version
migrationTo()
Queries
queries()
Version
queriesFrom()
Version
queriesTo()
Query
query()
The currentQuery
that is being executed.
-
-
-
Method Detail
-
migrationFrom
Version migrationFrom()
TheVersion
from which aMigration
has 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
MigrationListener
events.
-
migrationTo
Version migrationTo()
TheVersion
to which aMigration
is 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
MigrationListener
events.
-
migrationQueries
Queries migrationQueries()
The complete set ofQueries
that are executed betweenmigrationFrom()
andmigrationTo()
.This is available on all
MigrationListener
events.
-
queriesFrom
Version queriesFrom()
TheVersion
from which an individual set ofQueries
has 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()
TheVersion
to which an individual set ofQueries
is 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 ofQueries
that are executed betweenqueriesFrom()
andqueriesTo()
.This is available on the same
MigrationListener
events asqueriesFrom()
andqueriesTo()
.
-
query
Query query()
The currentQuery
that is being executed.This is available on
MigrationListener.queryStart(MigrationContext)
andMigrationListener.queryEnd(MigrationContext)
.
-
-