Kirlovon / aloedb

Light, Embeddable, NoSQL database for Deno 🦕
https://deno.land/x/aloedb
MIT License
140 stars 12 forks source link

Feature request: add ID auto counter #14

Closed salemalem closed 3 years ago

salemalem commented 3 years ago

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.

Kirlovon commented 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.

salemalem commented 3 years ago

For now, you can use nanoid or simmilar modules. Goal is to stay zero dependency for database)

Kirlovon commented 3 years ago

"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? 😀