Database persistence without SQL server

I am looking for a solution that will allow persistence, without requiring the installation of an SQL server on the host, and can be added along with the desktop application. Is there such a thing?

+4
source share
3 answers

You can use an embedded database written in Java, such as Java DB (Sun-supported Apache Derby distribution), HSQLDB , or H2 (creator of HSQLDB). H2 has its own preferences and is wise (some comparisons are here , here and here ) and because of compatibility with other databases (it is very good when H2 is not your target database, but may not matter in your context).

+9
source

I think you need something like SQLite ( Java bindings ) (a fast general purpose nested database with flat files).

+5
source

You can look at SQL Server Compact Edition . It has many features, such as the full version of SQL Server, is free and does not require separate installation.

+2
source

Source: https://habr.com/ru/post/1307968/


All Articles