Closed salemalem closed 3 years ago
Hi! Maybe in future releases i will add mandatory unique id for documents. For now, you can use nanoid or simmilar modules.
For now, you can use nanoid or simmilar modules. Goal is to stay zero dependency for database)
"Zero dependency" refers only to the internal structure of AloeDB. Your project can have as many dependencies as you want, it all depends on your needs.
You can write the id generation function yourself, or even copy the code from the nanoid repository. Will it count as a dependency in that case? 😀
It would be cool if aloe db will have built-in ID counter, so I don't have to worry about its uniqueness) String uniqueness or number counter options should be provided.