org.flywaydb.core.Flyway.setPlaceholders()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(85)

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

Flyway.setPlaceholders介绍

暂无

代码示例

代码示例来源:origin: zapodot/embedded-db-junit

public Builder withPlaceholders(final Map<String, String> placeholders) {
  flyway.setPlaceholders(placeholders);
  return this;
}

代码示例来源:origin: exomiser/Exomiser

private void migrateDatabase(DataSource dataSource) {
    Map<String, String> propertyPlaceHolders = new HashMap<>();
    propertyPlaceHolders.put("import.path", dataPath.toString());

    logger.info("Migrating {} genome database...", buildString);
    Flyway h2Flyway = new Flyway();
    h2Flyway.setDataSource(dataSource);
    h2Flyway.setSchemas("EXOMISER");
    h2Flyway.setLocations("classpath:db/migration");
    h2Flyway.setPlaceholders(propertyPlaceHolders);
    h2Flyway.clean();
    h2Flyway.migrate();
  }
}

代码示例来源:origin: exomiser/Exomiser

private static void migrateH2Database(DataSource h2DataSource, Map<String, String> propertyPlaceHolders) {
    logger.info("Migrating exomiser H2 database...");
    Flyway h2Flyway = new Flyway();
    h2Flyway.setDataSource(h2DataSource);
    h2Flyway.setSchemas("EXOMISER");
    h2Flyway.setLocations("migration/common", "migration/h2");
    h2Flyway.setPlaceholders(propertyPlaceHolders);
    h2Flyway.clean();
    h2Flyway.migrate();
  }
}

代码示例来源:origin: openl-tablets/openl-tablets

flyway.setBaselineOnMigrate(true);
flyway.setTable("openl_security_flyway");
flyway.setPlaceholders(placeholders);

代码示例来源:origin: org.arquillian.ape/arquillian-ape-sql-standalone-flyway

flyway.setPlaceholders((Map<String, String>) this.options.get(PLACEHOLDERS));

代码示例来源:origin: org.openl.rules/org.openl.rules.security.standalone

flyway.setBaselineOnMigrate(true);
flyway.setTable("openl_security_flyway");
flyway.setPlaceholders(placeholders);

代码示例来源:origin: org.openl.rules/org.openl.security.standalone

flyway.setBaselineOnMigrate(true);
flyway.setTable("openl_security_flyway");
flyway.setPlaceholders(placeholders);

代码示例来源:origin: EngineHub/WorldGuard

flyway.setDataSource(config.getDsn(), config.getUsername(), config.getPassword());
flyway.setTable(config.getTablePrefix() + "migrations");
flyway.setPlaceholders(placeHolders);
flyway.setValidateOnMigrate(false);
flyway.migrate();

相关文章