Answer the question
In order to leave comments, you need to log in
xml database
To store user settings for a small console utility, I'm looking for an embedded database (preferably java), which could store data in regular files, for example, in xml format (json, etc).
Those. so that, on the one hand, you can use the ready-made API (get a record by number, find (update, delete) several records by criteria, insert, etc.), and on the other hand, make changes directly to the file with pens.
I tried to use JAXB for these purposes, but it's cumbersome.
Answer the question
In order to leave comments, you need to log in
And why it is impossible to take sqlite?
1 file + native sql syntax
JSON - here you implement an object in JavaScript, or something in Java (as far as I remember, in Java you can do inserts in JS directly)
And use native tools for searching, etc.
according to this JSON in Java itself is "out of the box".
Ungroup your files according to any logical principle into different files and directories. Then go, take away, surrealize - Profit!!!
Let's say your application has several users, well, create a directory where you will save all the data, for example textDB , organize the subdirectory Users in it , and there, respectively, %username%\config.js
PS: Well, this is like the most banal Option, although the main mechanisms will still have to be implemented with “handles”, well, there is generally one class of 20 lines :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question