【问题标题】:How to use a place holder in liquibase如何在 liquibase 中使用占位符
【发布时间】:2016-03-07 18:17:01
【问题描述】:

我想在 liquibase 的 GRANT 命令中为用户名使用占位符。我在 liquibase xml 中为我的所有 SQL 命令使用<sql>。我正在使用 SpringLiquibase 调用 liquibase。将用户名作为参数传递给这个 Liquibase 实例的选项有哪些?

我看到这个页面http://www.liquibase.org/documentation/changelog_parameters.html 有一些选项。但我不想将它作为 JVM 参数或 Liquibase 运行器参数传递。有没有可能通过SpringLiquibase?

【问题讨论】:

    标签: spring-boot liquibase


    【解决方案1】:

    只是想我可以在 liquibase 上使用 setChangelogParameters - http://www.liquibase.org/javadoc/liquibase/integration/spring/SpringLiquibase.html

    这解决了我的目的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-13
      • 2014-05-21
      • 2022-11-07
      • 1970-01-01
      • 2014-01-05
      • 2020-12-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多