Rethinkdb unique index helper extension for matter in motion framework
As rethinkdb doesn't have unique second indexes support this extension provides method to make that possible
Extensions installation instructions
This extension adds a db.rethinkdb.unquie
unit.
- table — table name, that will be used as index
- id — id, is a string or number that should be unique
All methods return a Promise. If id
is not unique all methods throw a Duplicate entity
error with code 4500
.
Ensures that id is unique.
Deletes id
from the index.
Renames id
to newId
.
License: MIT.