Skip to content
On this page

stratadb / DeleteResult

Type Alias: DeleteResult

ts
type DeleteResult = object;

Defined in: src/collection-types.ts:91

Result of a delete operation.

Remarks

Provides the count of documents deleted by the operation. Since SQLite is ACID and local, if this function returns without throwing, the operation succeeded.

Example

typescript
const result = await users.deleteMany({ status: 'inactive' });
console.log(`Deleted ${result.deletedCount} users`);

Properties

deletedCount

ts
readonly deletedCount: number;

Defined in: src/collection-types.ts:93

Number of documents deleted

Released under the MIT License.