Skip to content

Commit

Permalink
feat: CommonKeyValueDao.deleteById
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Jan 4, 2022
1 parent 81574b4 commit 2a5e855
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kv/commonKeyValueDao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export class CommonKeyValueDao<T> {
await this.cfg.db.deleteByIds(this.cfg.table, ids)
}

async deleteById(id: string): Promise<void> {
await this.cfg.db.deleteByIds(this.cfg.table, [id])
}

streamIds(limit?: number): ReadableTyped<string> {
return this.cfg.db.streamIds(this.cfg.table, limit)
}
Expand Down

0 comments on commit 2a5e855

Please sign in to comment.