M
M
Maxim2013-04-22 20:31:42
Java
Maxim, 2013-04-22 20:31:42

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

5 answer(s)
D
dbmaster, 2013-04-22
@dbmaster

Some projects used xstream.

N
Nikita Gusakov, 2013-04-23
@hell0w0rd

And why it is impossible to take sqlite?
1 file + native sql syntax

I
Ilya Sevostyanov, 2013-04-23
@RUVATA

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 :)

J
jorikburlakov, 2013-04-23
@jorikburlakov

GSON+MongoDB

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question