Support bulk create, update and delete
- 主要言語
- JavaScript
- スター
- 2k
- フォーク
- 238
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
- AbstractClass.create() should support an array of objects. In the case of an array the result should be a single query or database transaction that acts as a bulk insert.
- AbstractClass.destroyAll() should support an optional params argument, mirroring the syntax of AbstractClass.all(). Allows us to write a bulk delete query ("DELETE FROM table WHERE ...") rather than retrieving, iterating over and deleting X number of objects.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Look at the AbstractClass implementation in the ORM's core, likely in lib/abstract-class.js or similar. Examine how create() and destroyAll() currently work, and study the adapter interface for each database (postgres, mysql, etc.) to understand how to implement bulk operations. Check existing tests for these methods to see the expected behavior. Done means the methods handle arrays and optional params correctly, with a single query or transaction per database adapter.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, mongodb, mysql, nodejs, postgresql, redis, sqlite
- 領域
- backend, database
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100