Package ac.simons.neo4j.migrations.core
Interface MigrationChain
public interface MigrationChain
Public information about an applied migration. All migrations (applied and pending) form a chain of transformations
to a dabase. The chain starts implicit with a baseline version. The baseline version is not contained in this chain.
- Since:
- 0.0.4
- Author:
- Michael J. Simons
- Soundtrack
- Paul van Dyk - From Then On
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A chain element describing a pending or applied migration. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.boolean
default String
Pretty prints this chain as an ASCII table.
-
Method Details
-
prettyPrint
Pretty prints this chain as an ASCII table.- Returns:
- A formatted string (an ASCII table representing the chain)
- Since:
- 0.0.11
-
getServerAddress
String getServerAddress()- Returns:
- The address of the server used.
-
getServerVersion
String getServerVersion()- Returns:
- The Neo4j version the server is running
-
getUsername
String getUsername()- Returns:
- The Neo4j user that ran the migrations
-
getDatabaseName
Deprecated.since 1.1.0, please usegetOptionalDatabaseName()
()}- Returns:
- The database if applicable (Neo4j 4.0 and up), maybe null
-
getOptionalDatabaseName
- Returns:
- The database if applicable (Neo4j 4.0 and up)
- Since:
- 1.1.0
-
getOptionalSchemaDatabaseName
- Returns:
- The database if applicable (Neo4j 4.0 and up)
- Since:
- 1.1.0
-
isApplied
- Parameters:
version
- An arbitrary version string- Returns:
- True, if the version string maps to a migration that has been applied.
-
getElements
Collection<MigrationChain.Element> getElements()- Returns:
- The elements of this migration
-
getOptionalDatabaseName()
()}