简体   繁体   English

没有SQL服务器的数据库持久性

[英]Database persistence without an SQL server

I'm seeking a solution that would allow persistence without requiring an SQL server to be installed on the host and could be bundled along with a desktop application. 我正在寻找一种允许持久性的解决方案,而不需要在主机上安装SQL服务器,并且可以与桌面应用程序捆绑在一起。 Does such a thing exist? 这样的事情存在吗?

You could use an embeddable database written in Java like Java DB (Sun's supported distribution of Apache Derby), HSQLDB , or H2 (by the creator of HSQLDB). 您可以使用Java编写的可嵌入数据库,如Java DB (Sun支持Apache Derby的分发), HSQLDBH2 (由HSQLDB的创建者)。 H2 has my preference performance wise and features wise (some comparisons here , here and here ) and because of the compatibility mode with other databases (very nice when H2 is not your target database but maybe irrelevant in your context). H2有我的偏好表现明智和聪明的功能(有些比较这里这里这里 ),并由于兼容性与其他数据库模式时(H2是不是你的目标数据库,但在你的情况下,也许不相干的非常漂亮)。

我想你想要像SQLiteJava绑定 )(快速平面文件通用嵌入式数据库)之类的东西。

You might look at SQL Server Compact Edition . 您可以查看SQL Server Compact Edition It has many of the same features as the full version of SQL Server, is free and does not require a separate installation. 它具有许多与完整版SQL Server相同的功能,是免费的,不需要单独安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM