You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_guides/compact-and-destroy.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ However, if that's not a concern, then compaction is a harmless operation. In fa
52
52
If you really want to go all-in on compaction, then you can even put your database in `auto_compaction` mode. This means that it will automatically perform a `compact()` operation after every write.
53
53
54
54
```js
55
-
var db =newPouchDB('mydb', {auto_compaction:true});
Copy file name to clipboardExpand all lines: docs/_guides/conflicts.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ In CouchDB, conflicts can occur in two places: immediately, when you try to comm
24
24
**Immediate conflicts** can occur with any API that takes a `rev` or a document with `_rev` as input –`put()`, `post()`, `remove()`, `bulkDocs()`, and `putAttachment()`. They manifest as a `409` (conflict) error:
This pattern comes in handy when you want to share data between the two.
@@ -132,7 +132,7 @@ This is ideal for scenarios where the user may be flitting in and out of connect
132
132
Sometimes, you may want to manually cancel replication – for instance, because the user logged out. You can do so by calling `cancel()` and then waiting for the `'complete'` event:
133
133
134
134
```js
135
-
var syncHandler =localDB.sync(remoteDB, {
135
+
constsyncHandler=localDB.sync(remoteDB, {
136
136
live:true,
137
137
retry:true
138
138
});
@@ -147,7 +147,7 @@ syncHandler.cancel(); // <-- this cancels it
147
147
The `replicate` API also supports canceling:
148
148
149
149
```js
150
-
var replicationHandler =localDB.replicate.to(remoteDB, {
0 commit comments