@joystick.js/db-canary 0.0.0-canary.2243 → 0.0.0-canary.2244

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +13 -0
  2. package/dist/client/index.js +1 -1
  3. package/dist/server/cluster/worker.js +1 -1
  4. package/dist/server/index.js +1 -1
  5. package/dist/server/lib/development_mode.js +1 -1
  6. package/dist/server/lib/op_types.js +1 -1
  7. package/dist/server/lib/operation_dispatcher.js +1 -1
  8. package/dist/server/lib/operations/delete_many.js +1 -0
  9. package/package.json +2 -2
  10. package/src/client/index.js +33 -0
  11. package/src/server/cluster/worker.js +6 -5
  12. package/src/server/index.js +1 -0
  13. package/src/server/lib/development_mode.js +2 -2
  14. package/src/server/lib/op_types.js +1 -0
  15. package/src/server/lib/operation_dispatcher.js +5 -0
  16. package/src/server/lib/operations/delete_many.js +130 -0
  17. package/test_data_api_key_1758220165907_u8d8j2z37/data.mdb +0 -0
  18. package/test_data_api_key_1758220165907_u8d8j2z37/lock.mdb +0 -0
  19. package/test_data_api_key_1758220166138_q079fkt44/data.mdb +0 -0
  20. package/test_data_api_key_1758220166138_q079fkt44/lock.mdb +0 -0
  21. package/test_data_api_key_1758220166370_elaxmwvuj/data.mdb +0 -0
  22. package/test_data_api_key_1758220166370_elaxmwvuj/lock.mdb +0 -0
  23. package/test_data_api_key_1758220166487_689q46e05/data.mdb +0 -0
  24. package/test_data_api_key_1758220166487_689q46e05/lock.mdb +0 -0
  25. package/test_data_api_key_1758220174956_9lhw6u6la/data.mdb +0 -0
  26. package/test_data_api_key_1758220174956_9lhw6u6la/lock.mdb +0 -0
  27. package/test_data_api_key_1758220175070_1hruzftqf/data.mdb +0 -0
  28. package/test_data_api_key_1758220175070_1hruzftqf/lock.mdb +0 -0
  29. package/test_data_api_key_1758220175183_ean83s4od/data.mdb +0 -0
  30. package/test_data_api_key_1758220175183_ean83s4od/lock.mdb +0 -0
  31. package/test_data_api_key_1758220736169_8xv9swdwn/data.mdb +0 -0
  32. package/test_data_api_key_1758220736169_8xv9swdwn/lock.mdb +0 -0
  33. package/test_data_api_key_1758220736405_tzltnwwf5/data.mdb +0 -0
  34. package/test_data_api_key_1758220736405_tzltnwwf5/lock.mdb +0 -0
  35. package/test_data_api_key_1758220736640_avs9xxx7j/data.mdb +0 -0
  36. package/test_data_api_key_1758220736640_avs9xxx7j/lock.mdb +0 -0
  37. package/test_data_api_key_1758220736757_c4hhzan82/data.mdb +0 -0
  38. package/test_data_api_key_1758220736757_c4hhzan82/lock.mdb +0 -0
  39. package/test_data_api_key_1758220744324_89rzc4cak/data.mdb +0 -0
  40. package/test_data_api_key_1758220744324_89rzc4cak/lock.mdb +0 -0
  41. package/test_data_api_key_1758220744436_y2244449u/data.mdb +0 -0
  42. package/test_data_api_key_1758220744436_y2244449u/lock.mdb +0 -0
  43. package/test_data_api_key_1758220744548_968u1bkrk/data.mdb +0 -0
  44. package/test_data_api_key_1758220744548_968u1bkrk/lock.mdb +0 -0
  45. package/tests/client/index.test.js +393 -0
  46. package/tests/server/cluster/master_read_write_operations.test.js +7 -6
  47. package/tests/server/lib/operations/delete_many.test.js +263 -0
  48. package/types/client/index.d.ts +17 -0
@@ -233,6 +233,15 @@ declare class JoystickDBClient extends EventEmitter<[never]> {
233
233
  * @returns {Promise<Object>} Delete result
234
234
  */
235
235
  delete_one(collection: string, filter: any, options?: any): Promise<any>;
236
+ /**
237
+ * Deletes multiple documents from a collection.
238
+ * @param {string} collection - Collection name
239
+ * @param {Object} [filter={}] - Query filter to match documents
240
+ * @param {Object} [options={}] - Delete options
241
+ * @param {number} [options.limit] - Maximum number of documents to delete
242
+ * @returns {Promise<Object>} Delete result with acknowledged, deleted_count, and operation_time
243
+ */
244
+ delete_many(collection: string, filter?: any, options?: any): Promise<any>;
236
245
  /**
237
246
  * Performs multiple write operations in a single request.
238
247
  * @param {string} collection - Collection name
@@ -411,6 +420,14 @@ declare class Collection {
411
420
  * @returns {Promise<Object>} Delete result
412
421
  */
413
422
  delete_one(filter: any, options?: any): Promise<any>;
423
+ /**
424
+ * Deletes multiple documents from the collection.
425
+ * @param {Object} [filter={}] - Query filter to match documents
426
+ * @param {Object} [options={}] - Delete options
427
+ * @param {number} [options.limit] - Maximum number of documents to delete
428
+ * @returns {Promise<Object>} Delete result with acknowledged, deleted_count, and operation_time
429
+ */
430
+ delete_many(filter?: any, options?: any): Promise<any>;
414
431
  /**
415
432
  * Performs multiple write operations in a single request.
416
433
  * @param {Array<BulkWriteOperation | LegacyBulkWriteOperation>} operations - Array of write operations (supports both snake_case and camelCase)