什么是与 SQL Server 兼容的良好数据库迁移框架?

发布于 2024-07-08 17:41:44 字数 273 浏览 6 评论 0原文

我已经被 ActiveRecords 宠坏了。 因此,我正在寻找可以应用于 SQL Server 的迁移系统,并且可以作为 Java 应用程序执行,也可以作为 Win32 可执行文件执行。 (当然,欢迎与其他数据库和主机操作系统进一步兼容。)

真正的愿望是拥有一个具有回滚功能的清晰模式更改应用程序,最好是比 SQL 更好的东西,这样它就可以与数据库系统无关。

我发现基于 Java 的替代方案的问题是缺乏对 Microsoft JDBC 的干净支持。

期待任何建议。

I've been spoiled by ActiveRecords. So I'm on the lookout for migration system that can be applied to SQL Server, and either is executed as Java application, or a Win32 Executable. (Of course further compatibility with other DB's and host OS's is welcome.)

The real desire is having a clear schema change application with roll back, ideally in something nicer then SQL so it can be DB system agnostic.

The hitch I've found for alternatives that are Java based, is lack of clean support for the Microsoft JDBC.

Looking forward to any suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

何以畏孤独 2024-07-15 17:41:44

查看 Ben Sheirman 关于该主题的精彩帖子:

http://flux88.com /blog/net-database-migration-tool-roundup/

我尝试了 Tarantino,它工作正常,但您仍然被锁定到 sql server 的 sql 脚本。

/安德斯

Check out Ben Sheirmans excellent post on the topic:

http://flux88.com/blog/net-database-migration-tool-roundup/

I tried Tarantino and it worked OK, but you're still locked to sql scripts for sql server.

/Anders

格子衫的從容 2024-07-15 17:41:44

试试螨虫。 我写了它并且已经成功使用它很多年了。

https://github.com/soitgoes/mite

如果您打开“自动生成更改脚本”,则Sql Management Studio 将生成您可以保存到 mite 文件中的 SQL。 不再需要编写迁移,只需让 Management Studio 为您完成即可! 然后,如果您需要自定义某些内容来更改数据,您可以简单地在 sql 中执行此操作并将其保存到迁移中。

在此处输入图像描述

让我知道您的想法。

Try Mite. I wrote it and have been using it for years successfully.

https://github.com/soitgoes/mite

If you turn on "Auto Generate Change Scripts" then Sql Management Studio will generate the sql that you can save into your mite file. No more writing migrations just let Management Studio do it for you! Then if you ever need to custom craft something to alter data you can simply do that in sql and save it to a migration.

enter image description here

Let me know what you think.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文