petersirka/nosql

Unique IDs

TheoryOfNekomata opened this issue · 1 comments

As a suggestion for this, see SQL's AUTOINCREMENT feature.

Hi @Temoto-kun,
autoincrement is not planned because for it's needed another database (for current e.g. index). So and this is a problem.

You can create autoincrement via timestamp:
db.insert({ id: Date.now() });

Thanks!