Skip to content

Commit 3728f02

Browse files
authored
Update 2022-12-14-pouchdb-8.0.0.md
1 parent c90a020 commit 3728f02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/_posts/2022-12-14-pouchdb-8.0.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ let tasks = PouchDB.activeTasks.list()
2424
```
2525

2626
Example result:
27+
2728
```js
2829
[{
2930
"id": "d81fea92-8ce4-42df-bb2b-89a4e67536c3",
@@ -44,6 +45,7 @@ Purge permanently removes data from the database. Normal deletion with `db.remov
4445
`db.purge()` is not intended as a regular method for deleting documents, instead, it is meant as an admin function for cases where some secret was erroneously added to the database and must now be removed completely, eg. a credit card or social security number. Purge effectively puts the database in a state where the offending write never happened.
4546

4647
Example usage:
48+
4749
```js
4850
try {
4951
const result = await db.purge('mydoc', '6-3a24009a9525bde9e4bfa8a99046b00d');
@@ -54,6 +56,7 @@ try {
5456
```
5557

5658
Example result:
59+
5760
```js
5861
{
5962
"ok": true,

0 commit comments

Comments
 (0)