liquibase.Liquibase.reportStatus()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(196)

本文整理了Java中liquibase.Liquibase.reportStatus()方法的一些代码示例,展示了Liquibase.reportStatus()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Liquibase.reportStatus()方法的具体详情如下:
包路径:liquibase.Liquibase
类名称:Liquibase
方法名:reportStatus

Liquibase.reportStatus介绍

暂无

代码示例

代码示例来源:origin: dropwizard/dropwizard

@Override
@SuppressWarnings("UseOfSystemOutOrSystemErr")
public void run(Namespace namespace, Liquibase liquibase) throws Exception {
  final Boolean verbose = namespace.getBoolean("verbose");
  liquibase.reportStatus(verbose == null ? false : verbose,
              getContext(namespace),
              new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
}

代码示例来源:origin: signalapp/Signal-Server

@Override
@SuppressWarnings("UseOfSystemOutOrSystemErr")
public void run(Namespace namespace, Liquibase liquibase) throws Exception {
 liquibase.reportStatus(namespace.getBoolean("verbose"),
             getContext(namespace),
             new OutputStreamWriter(System.out, Charsets.UTF_8));
}

代码示例来源:origin: com.expanset.utils/utils-dbmigration

@Override
  protected void doComandInternal(CommandLine commandLine, Liquibase liquidbase) 
      throws Exception {
    final String context = commandLine.getOptionValue(CONTEXT_PROPERTY, null);
    
    liquidbase.reportStatus(true, context, dbMaintenance.createConsoleOutput());
  }
}

代码示例来源:origin: io.dropwizard/dropwizard-migrations

@Override
@SuppressWarnings("UseOfSystemOutOrSystemErr")
public void run(Namespace namespace, Liquibase liquibase) throws Exception {
  liquibase.reportStatus(MoreObjects.firstNonNull(namespace.getBoolean("verbose"), false),
              getContext(namespace),
              new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
}

代码示例来源:origin: org.liquibase/liquibase-maven-plugin

@Override
protected void performLiquibaseTask(Liquibase liquibase)
    throws LiquibaseException {
  try {
    liquibase.reportStatus(true, new Contexts(contexts), new LabelExpression(labels), new OutputStreamWriter(System.out, LiquibaseConfiguration.getInstance().getConfiguration(GlobalConfiguration.class).getOutputEncoding()));
  } catch (UnsupportedEncodingException e) {
    throw new UnexpectedLiquibaseException(e);
  }
}

相关文章