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

标签 oracle postgresql testing hsqldb in-memory

我想使用 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/

相关文章:

Oracle 和 Hibernate 之间的 Java 数据类型不匹配

postgresql - 内连接和外连接;表格的顺序重要吗?

c++ - 测试 MPI_Barrier C++

python - RobotFramework:为什么要用关键字/机器人框架语法编写测试?

oracle - 无法在 Debug 中修改该值

java - SimpleDateFormat 将字符串转换为日期

java - 如何将游标或记录列表传递给pl/sql中的java过程?

sql - 为什么添加一个窗口函数会使这个查询变得如此缓慢?

postgresql - PGSQL JSONB 中带有部分路径的深度 JSON 查询?

javascript - 如何在使用 mocha 进行测试时跳过意外的字符串错误