HSQLDB 和 JavaDB 有什么区别?哪一种适合单元测试?
您能告诉我 HSQLDB 和 JavaDB 之间的区别吗?假设我只使用标准功能,我应该在单元测试中使用哪一个?谢谢。
Could you tell me the differences between HSQLDB and JavaDB? And which one should I use in unit testing, assuming that I only use standard features? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
HSQLDB 速度更快,因此更适合单元测试。
H2 数据库 甚至更好(在我看来):它与 HSQLDB 一样快,并且支持各种数据库的兼容模式( MySQL、Oracle、...)。因此,如果您将来需要使用数据库特定功能,您仍然可以使用 H2 进行测试。但我的观点有点偏颇(见我的个人资料)。
HSQLDB is faster, therefore it is better suited for unit testing.
The H2 Database is even better (in my view): it's as fast as HSQLDB, and supports compatibility modes for various databases (MySQL, Oracle,...). So if you need to use database specific features in the future, chances are that you can still test it with H2. But my view is a bit biased (see my profile).
HSQLDB 具有对测试有用但 JavaDB 中不可用的功能。其中包括
BTW,上述功能在H2中不可用(在另一个答案中提到)
HSQLDB has features that are useful for testing and not available in JavaDB. These include
BTW, the above features are not available in H2 (mentioned in another answer)