{"library":"bookshelf-paranoia","type":"library","category":null,"description":"bookshelf-paranoia is a plugin for Bookshelf.js that provides a transparent soft-delete mechanism for database records. Instead of permanently removing rows when `destroy` is called on a model, it sets a `deleted_at` timestamp on the record, effectively marking it as deleted without losing the data. This allows for easier data recovery and maintains historical data integrity within the database. The package is currently at version 0.13.1. A crucial aspect of this package is its \"unmaintained\" status, as explicitly stated by the author, who only dedicates minimal time to small fixes at a slow pace. This implies an uncertain release cadence and potential for slow resolution of issues. Its primary differentiator lies in seamlessly integrating soft-delete logic directly into Bookshelf models and queries, automatically excluding soft-deleted records from standard `fetch` operations and eager loadings, while offering overrides for hard deletion or retrieval of deleted records. This transparent approach minimizes changes required in application logic when implementing soft deletes.","language":"javascript","status":"maintenance","version":"0.13.1","tags":["javascript","bookshelf","knex","db","delete","safe","paranoia","database","soft"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bookshelf-paranoia","imports":["bookshelf.plugin(require('bookshelf-paranoia'))"]},{"cmd":"yarn add bookshelf-paranoia","imports":[]},{"cmd":"pnpm add bookshelf-paranoia","imports":[]}],"homepage":null,"github":"https://github.com/estate/bookshelf-paranoia","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bookshelf-paranoia","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bookshelf-paranoia/compatibility"}}