3 ms·
Ask HN: Java – looking for a persisten and embedded DB
Hi Guys,
i want to create a Java app and looking for a suitable DB.
The requirements are:
- user must be able to run the software offline
- user should not have to install any DB-Software (i.e. mySQL server)
so the DB should be embedded in my Java software and should create any filed to save the data.
Thank you very much in advance!
- dnomad 8y agoCheck out [1] and [2]. [1] https://github.com/xerial/sqlite-jdbc https://github.com/xerial/sqlite-jdbc [2] http://www.h2database.com/ http://www.h2database.com/
- mtmail 8y agohttps://techshard.com/2017/04/01/3-embedded-databases-in-java/ https://techshard.com/2017/04/01/3-embedded-databases-in-jav...
- shorty_ 8y agothank you both, exactly what i need. i thought h2 is not persistent, but as i see now, i can use it as a persistent DB too. Thx!
- jermo 8y agoIf you don't need full SQL then you can use embedded key-value stores: - RocksDB - MapDB