@joystick.js/db-canary 0.0.0-canary.2242 → 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.
- package/README.md +13 -0
- package/dist/client/index.js +1 -1
- package/dist/server/cluster/worker.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/lib/development_mode.js +1 -1
- package/dist/server/lib/op_types.js +1 -1
- package/dist/server/lib/operation_dispatcher.js +1 -1
- package/dist/server/lib/operations/delete_many.js +1 -0
- package/package.json +2 -2
- package/src/client/index.js +33 -0
- package/src/server/cluster/worker.js +6 -5
- package/src/server/index.js +1 -0
- package/src/server/lib/development_mode.js +2 -2
- package/src/server/lib/op_types.js +1 -0
- package/src/server/lib/operation_dispatcher.js +5 -0
- package/src/server/lib/operations/delete_many.js +130 -0
- package/test_data_api_key_1758220165907_u8d8j2z37/data.mdb +0 -0
- package/test_data_api_key_1758220165907_u8d8j2z37/lock.mdb +0 -0
- package/test_data_api_key_1758220166138_q079fkt44/data.mdb +0 -0
- package/test_data_api_key_1758220166138_q079fkt44/lock.mdb +0 -0
- package/test_data_api_key_1758220166370_elaxmwvuj/data.mdb +0 -0
- package/test_data_api_key_1758220166370_elaxmwvuj/lock.mdb +0 -0
- package/test_data_api_key_1758220166487_689q46e05/data.mdb +0 -0
- package/test_data_api_key_1758220166487_689q46e05/lock.mdb +0 -0
- package/test_data_api_key_1758220174956_9lhw6u6la/data.mdb +0 -0
- package/test_data_api_key_1758220174956_9lhw6u6la/lock.mdb +0 -0
- package/test_data_api_key_1758220175070_1hruzftqf/data.mdb +0 -0
- package/test_data_api_key_1758220175070_1hruzftqf/lock.mdb +0 -0
- package/test_data_api_key_1758220175183_ean83s4od/data.mdb +0 -0
- package/test_data_api_key_1758220175183_ean83s4od/lock.mdb +0 -0
- package/test_data_api_key_1758220736169_8xv9swdwn/data.mdb +0 -0
- package/test_data_api_key_1758220736169_8xv9swdwn/lock.mdb +0 -0
- package/test_data_api_key_1758220736405_tzltnwwf5/data.mdb +0 -0
- package/test_data_api_key_1758220736405_tzltnwwf5/lock.mdb +0 -0
- package/test_data_api_key_1758220736640_avs9xxx7j/data.mdb +0 -0
- package/test_data_api_key_1758220736640_avs9xxx7j/lock.mdb +0 -0
- package/test_data_api_key_1758220736757_c4hhzan82/data.mdb +0 -0
- package/test_data_api_key_1758220736757_c4hhzan82/lock.mdb +0 -0
- package/test_data_api_key_1758220744324_89rzc4cak/data.mdb +0 -0
- package/test_data_api_key_1758220744324_89rzc4cak/lock.mdb +0 -0
- package/test_data_api_key_1758220744436_y2244449u/data.mdb +0 -0
- package/test_data_api_key_1758220744436_y2244449u/lock.mdb +0 -0
- package/test_data_api_key_1758220744548_968u1bkrk/data.mdb +0 -0
- package/test_data_api_key_1758220744548_968u1bkrk/lock.mdb +0 -0
- package/tests/client/index.test.js +393 -0
- package/tests/server/cluster/master_read_write_operations.test.js +7 -6
- package/tests/server/lib/operations/delete_many.test.js +263 -0
- package/types/client/index.d.ts +17 -0
package/types/client/index.d.ts
CHANGED
|
@@ -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)
|