Package org.liquigraph.core.io
Class ChangelogGraphWriter
- java.lang.Object
-
- org.liquigraph.core.io.ChangelogGraphWriter
-
- All Implemented Interfaces:
ChangelogWriter
public class ChangelogGraphWriter extends Object implements ChangelogWriter
-
-
Constructor Summary
Constructors Constructor Description ChangelogGraphWriter(Connection writeConnection, Supplier<Connection> connectionSupplier, ConditionExecutor conditionExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(Collection<Changeset> changelog)Runs the set of migrations against the configured database and inserts them in the persisted migration graph.
-
-
-
Constructor Detail
-
ChangelogGraphWriter
public ChangelogGraphWriter(Connection writeConnection, Supplier<Connection> connectionSupplier, ConditionExecutor conditionExecutor)
-
-
Method Detail
-
write
public void write(Collection<Changeset> changelog)
Runs the set of migrations against the configured database and inserts them in the persisted migration graph.Please note that these two operations are performed in two separate transactions, as user-defined migrations may operate on indices and those need be run apart from data changes.
- Specified by:
writein interfaceChangelogWriter
-
-