适用于不需要服务器依赖的Swing应用程序数据库 [英] Suitable database for swing application which does not need server dependancy

查看:115
本文介绍了适用于不需要服务器依赖的Swing应用程序数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下哪个数据库适合 swing桌面应用程序:?

Which database is suitable for swing desktop application from the followings :?


  1. SQLite

  2. Apache Derby

  3. HyperSQL DB

我想将数据存储在本地而不是使用Web服务,并从上面存储临时
,这减轻了本地数据库的负担?

I want to store my data locally instead of using web service and store for temporary from the above which is lighten local database ?

推荐答案

要添加到嵌入式SQL答案中,您还可以在内存中运行noSQL Neo4J,而无需访问磁盘。

To add to the embedded SQL answer, you can also run the noSQL Neo4J in memory without the need for disk access.

如果我记得您以前的问题,您实际上想将数据放入罐子中,对吗?然后,您需要在每次启动应用程序时将数据作为文件发送并加载到数据库中。这是一个很大的问题,您确实需要开始阅读这些答案中提到的一个嵌入式数据库。您需要查看数据并查看选项,然后确定要使用的数据库。

If I remember your previous question, you want to actually ship the data inside the jar, correct? Then you need to ship the data as files and load it into the database each and every time you start the application. That's a massive question and you really need to start reading up on one of the embedded databases mentioned in these answers. You need to look at your data and look at the options then decide which database to use.

简单地说,这不适用于mySQL,您需要使用嵌入式数据库。最简单的方法是

Put simply, this will not work with mySQL, you need to use an embedded database. Easiest way would be to


  1. 以任意方式创建并填充它

  2. 导出数据

  3. 将导出文件存储在jar文件中。

  4. 在应用程序中编写代码,即
    a)在启动$ b $时启动嵌入式数据库bb)将jar文件中的数据加载到其中

  1. Create and populate it any way you like
  2. Export the data
  3. Store the export file in your jar file.
  4. Write code in your application that a) starts an embedded database on startup b) loads the data from the jar file into it

这篇关于适用于不需要服务器依赖的Swing应用程序数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆