-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Versionapply(String id, String migration)Apply a migration to produce a new version.@NotNull Versionapply(String id, Collection<? extends Query> migration)Apply a migration to produce a new version.@NotNull Versionapply(String id, Queries migration)Apply a migration to produce a new version.@NotNull Versionapply(String id, Query... migration)Apply a migration to produce a new version.@NotNull Versioncommit(String id, String... meta)Commit a newMetarepresentation to the version graph.@NotNull Versioncommit(String id, Meta meta)Commit a newMetarepresentation to the version graph.@NotNull Versioncommit(String id, Source... meta)Commit a newMetarepresentation to the version graph.@NotNull Stringid()The version ID, which is unique in the version graph.@NotNull Versionmerge(String id, Version with)Merge versions.@NotNull Metameta()The version'sMetarepresentation of the database.@NotNull QueriesmigrateTo(Version version)Produce a migration to a new version.@NotNull List<Version>parents()Get the parent versions of this version.@NotNull Versionroot()Get the root version of this graph.
-
-
-
Method Detail
-
id
@NotNull @NotNull String id()
The version ID, which is unique in the version graph.
-
migrateTo
@NotNull @NotNull Queries migrateTo(Version version)
Produce a migration to a new version.In jOOQ's commercial distributions, this method allows for migrating between versions in any direction, regardless of which version was "first" in a version graph, or if the two versions are on different branches. The resulting queries are potentially destructive in such a case. Such destructive queries ("UNDO" migrations) are prevented by default, and can be turned on using
Settings.isMigrationAllowsUndo().In jOOQ's Open Source Edition, this method only allows for migrating "forward".
-
root
@NotNull @NotNull Version root()
Get the root version of this graph.
-
commit
@NotNull @NotNull Version commit(String id, Meta meta)
Commit a newMetarepresentation to the version graph.This calculates a migration path using
Meta.migrateTo(Meta).
-
commit
@NotNull @NotNull Version commit(String id, String... meta)
Commit a newMetarepresentation to the version graph.- See Also:
commit(String, Meta)
-
commit
@NotNull @NotNull Version commit(String id, Source... meta)
Commit a newMetarepresentation to the version graph.- See Also:
commit(String, Meta)
-
apply
@NotNull @NotNull Version apply(String id, Queries migration)
Apply a migration to produce a new version.
-
apply
@NotNull @NotNull Version apply(String id, Query... migration)
Apply a migration to produce a new version.- See Also:
apply(String, Queries)
-
apply
@NotNull @NotNull Version apply(String id, Collection<? extends Query> migration)
Apply a migration to produce a new version.- See Also:
apply(String, Queries)
-
apply
@NotNull @NotNull Version apply(String id, String migration)
Apply a migration to produce a new version.- See Also:
apply(String, Queries)
-
-