MatrixAI / js-db

Key-Value DB for TypeScript and JavaScript Applications
https://polykey.com
Apache License 2.0
5 stars 0 forks source link

Added fresh parameter and create and delete exceptions #6

Closed CMCDragonkai closed 2 years ago

CMCDragonkai commented 2 years ago

Description

Added the fresh parameter and also added ErrorDBCreate and ErrorDBDelete for when we are doing fs operations.

Also when creating the dbPath, we don't create the parent directories automatically. That should be the case.

Also changed to using this.constructor.name instead of 'DB'.

Part of CLI review in https://gitlab.com/MatrixAI/Engineering/Polykey/js-polykey/-/merge_requests/213

Final checklist