简体   繁体   English

任何可用于LiquiBase的API

[英]Any API available for LiquiBase

There is a requirement about a user interface to provide options to upgrade database change if there is new service pack for current Spring web application(with OpenJPA). 如果有当前Spring Web应用程序(使用OpenJPA)的新Service Pack,则需要有一个用户界面来提供升级数据库更改的选项。

Seems LiquiBase is a good option. 似乎LiquiBase是个不错的选择。 But I haven't found any articles or document about LiquiBase API that can detect new schema change(either from database or change log). 但我没有找到任何关于LiquiBase API的文章或文档,可以检测新的模式更改(来自数据库或更改日志)。 It looks like LiquiBase is more a "silence upgrade" option on development level, so each time developer can create new change log and let Maven to auto upgrade database schema. 看起来LiquiBase在开发级别上更像是“静默升级”选项,因此每次开发人员都可以创建新的更改日志并让Maven自动升级数据库架构。

But is there any option we can provide front end user to click a button to upgrade the schema by their choice, then show user error when it fails and roll back? 但有没有选项我们可以为前端用户提供单击按钮来按自己的选择升级架构,然后在失败时显示用户错误并回滚? In general is there some Java API can wrap with Spring framework? 一般来说有一些Java API可以用Spring框架包装吗?

Thanks in advance. 提前致谢。

I have to say a really hated Liquibase mainly because I just for some reason could not get it to work. 我不得不说一个非常讨厌的Liquibase主要是因为我出于某种原因无法让它工作。

You might want to give this a try: 您可能想尝试一下:

http://flywaydb.org/ http://flywaydb.org/

Otherwise (since it sounds like your shipping a product) you can create two installs: one of the old version and one of the new version. 否则(因为它听起来像是您的产品),您可以创建两个安装:旧版本之一和新版本之一。

Do a schema dump for each install and then diff them. 为每个安装执行架构转储,然后区分它们。 Create an up and down sql script based on the diffs. 根据差异创建一个上下sql脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否有可用的轻量级JMS API - is there any light weight JMS API available 是否有任何 API 可用于阿联酋通行证的数字签名 - Is there any API available for digital signature of UAE PASS 是否有任何与JPAv2兼容的供应商不可知持久性api公开可用 - Is there any JPAv2-compatible vendor agnostic persistence api public available Java - 在不使用任何可用 API 的情况下将 int 转换为 String - Java - Convert int to String without using any available API 数据工作室中是否有任何 REST API 可用于在 JAVA 中创建报告? - Is there any REST API available in data studio to create a report in JAVA? 无法从Liquibase Java API更新数据库 - Database not getting updated from Liquibase java API 从 Liquibase Java API 访问占位符 - Accessing Placeholders from Liquibase Java API 如何使用liquibase API生成回滚标签 - How to generate rollback tags using liquibase API 是否有任何简单的方法可以通过使用API​​来了解Salesforce中的架构是否发生了变化? - Is there any easy method available to know whether there is a change in schema in Salesforce by using API? 是否有任何可用的API来代表各种单位的项目,如KG,升,米,KM等 - Is there any available API to represent various units of item like KG, Litre, Metre, KM, etc
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM