gpt4 book ai didi

oracle - 数据库结构(oracle、mysql、postgreSQl..)到HSQLDB或H2的转换工具

转载 作者:行者123 更新时间:2023-11-29 12:22:00 26 4
gpt4 key购买 nike

我想使用 HsqlDB 或 H2 对内存数据库进行测试。我在生产中使用 Oracle 和 postgreSQL 数据库。所以我想知道是否有工具允许将 oracle、postgreSQL... 数据库结构转换为 hSQLDB 或 H2 模式。

提前致谢

最佳答案

看看DdlUtils .

从那个网站引用

DdlUtils can generate a DDL file for an existing database.
These are XML files that contain the definition of a database schema, e.g. tables and columns.
These files can be fed into DdlUtils via its Ant task or programmatically
in order to create the corresponding database or alter it so that it corresponds to the DDL

如果逆向工程失败,您可能会在第一次运行时遇到困难。无论如何,您可以通过某种方式设法获得逻辑数据模型,并且可以将其用于生产和测试。

关于oracle - 数据库结构(oracle、mysql、postgreSQl..)到HSQLDB或H2的转换工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16785664/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com