Package org.openmetadata.service.jdbi3
Interface MigrationDAO
public interface MigrationDAO
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptioncheckIfQueryPreviouslyRan(String checksum) getServerMigrationSQLWithVersion(String version) getSqlQuery(String version, String checksum) getVersionMigrationChecksum(String version) voidupsertServerMigration(String version, String migrationFileName, String checksum, String metrics) voidupsertServerMigrationSQL(String version, String sqlStatement, String success)
-
Method Details
-
getMaxVersion
- Throws:
org.jdbi.v3.core.statement.StatementException
-
getMaxServerMigrationVersion
Optional<String> getMaxServerMigrationVersion() throws org.jdbi.v3.core.statement.StatementException- Throws:
org.jdbi.v3.core.statement.StatementException
-
getVersionMigrationChecksum
String getVersionMigrationChecksum(String version) throws org.jdbi.v3.core.statement.StatementException - Throws:
org.jdbi.v3.core.statement.StatementException
-
getSqlQuery
String getSqlQuery(String version, String checksum) throws org.jdbi.v3.core.statement.StatementException - Throws:
org.jdbi.v3.core.statement.StatementException
-
upsertServerMigration
-
upsertServerMigrationSQL
-
getServerMigrationSQLWithVersion
-
checkIfQueryPreviouslyRan
-
listMetricsFromDBMigrations
List<MigrationDAO.ServerChangeLog> listMetricsFromDBMigrations() -
getMigrationVersions
-