@groovy.transform.Trait @groovy.transform.CompileStatic trait DatabaseMigrationCommand extends java.lang.Object
Type | Name and description |
---|---|
org.grails.build.parsing.CommandLine |
commandLine |
java.lang.String |
contexts |
java.lang.String |
dataSource |
java.lang.String |
defaultSchema |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
appendToChangeLog(java.io.File srcChangeLogFile, java.io.File destChangeLogFile) |
|
void |
configureDatabase(liquibase.database.Database database) |
|
liquibase.database.Database |
createDatabase(java.lang.String defaultSchema, java.lang.String dataSource, java.util.Map<java.lang.String, java.lang.String> dataSourceConfig) |
|
liquibase.resource.ResourceAccessor |
createResourceAccessor() |
|
void |
doDiffToChangeLog(java.io.File changeLogFile, liquibase.database.Database referenceDatabase, liquibase.database.Database targetDatabase) |
|
void |
doGenerateChangeLog(java.io.File changeLogFile, liquibase.database.Database originalDatabase) |
|
void |
doGeneratePreviousChangesetSql(java.io.Writer output, liquibase.database.Database database, liquibase.Liquibase liquibase, java.lang.String count, java.lang.String skip) |
|
java.util.List<java.lang.String> |
getArgs() |
|
java.io.File |
getChangeLogFile() |
|
java.lang.String |
getChangeLogFileName() |
|
java.io.File |
getChangeLogLocation() |
|
abstract grails.config.ConfigMap |
getConfig() |
|
java.lang.String |
getConfigPrefix() |
|
java.lang.String |
getContexts() |
|
java.util.Map<java.lang.String, java.lang.String> |
getDataSourceConfig(grails.config.ConfigMap config) |
|
boolean |
hasOption(java.lang.String name) |
|
boolean |
isTimeFormat(java.lang.String time) |
|
java.lang.String |
optionValue(java.lang.String name) |
|
void |
outputHeader(liquibase.executor.Executor executor, java.lang.String message, liquibase.Liquibase liquibase, liquibase.database.Database database) |
|
java.util.Date |
parseDateTime(java.lang.String date, java.lang.String time) |
|
java.io.File |
resolveChangeLogFile(java.lang.String filename) |
|
void |
withDatabase(java.util.Map<java.lang.String, java.lang.String> dataSourceConfig, groovy.lang.Closure closure) |
|
void |
withFileOrSystemOutWriter(java.lang.String filename, groovy.lang.Closure closure) |
|
void |
withLiquibase(groovy.lang.Closure closure) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |