Jsondb / jsondb-core

JsonDB a pure java database that stores its data as Json Files

Home Page:http://www.jsondb.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ID auto increment

qmc1020 opened this issue · comments

commented

Do we have id auto increment?

commented

So far not.
A JPA like auto incrementation is not present so far.
At the moment a default ID algorithm is used - UUIDs.
An ID logic would require a sequence store.
Could be implemented. If the demand is high, you could implemented it yourself and create a pull request.
On my end the need is not given (not involved so far in this project).

My idea:
A JPA like sequence generator per collection. Should kinda be easy. And not heavly impacting the perfomance if done right.