开发者

Is there embedded DB with PL/SQL support and Java API?

开发者 https://www.devze.com 2023-01-26 03:38 出处:网络
I\'m looking for embedded db with Java API for testing purposes. Also i need pl/sql support because we use oracle in production and migrations are written in pl/sql.

I'm looking for embedded db with Java API for testing purposes. Also i need pl/sql support because we use oracle in production and migrations are written in pl/sql.

I want to test my DAO objects and i need to create db in memory in process of unit test using migration scripts.

Now we use HSQL开发者_JAVA百科DB but it does't support pl/sql.

Can you recommend anything?


According to the wikipedia page about PL/SQL, the databases supporting PL/SQL are Oracle and DB2:

  • Embedded DB2
  • Embedded Oracle

If these don't suit you, there's nothing else. PL/SQL is a creation of Oracle, so it's not expected to be widely spread.


You could try installing Oracle XE on your local developer workstation and Continuous Integration server. Then connect with the SYS as SYSDBA or SYSTEM user to create your schema(s) before executing your unit tests.


We use Firebird's pl/sql extensively. It has an embedded server you can access through JDBC.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号