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/_includes/api/create_database.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
**Options for local databases:**
14
14
15
15
* `auto_compaction`: This turns on auto compaction, which means `compact()` is called after every change to the database. Defaults to `false`.
16
-
* `adapter`: One of `'indexeddb'`, `'idb'`, `'leveldb'`, or `'http'`.
16
+
* `adapter`: One of `'indexeddb'`, `'idb'`, `'leveldb'`, `'nodesqlite'`, or `'http'`.
17
17
* `revs_limit`: Specify how many old revisions we keep track (not a copy) of. Specifying a low value means Pouch may not be able to figure out whether a new revision received via replication is related to any it currently has which could result in a conflict. Defaults to `1000`.
18
18
* `deterministic_revs`: Use a md5 hash to create a deterministic revision number for documents. Setting it to false will mean that the revision number will be a random UUID. Defaults to true.
19
19
* `view_update_changes_batch_size`: Specify how many change records will be consumed at a time when rebuilding view indexes when the `query()` method is used. Defaults to 50.
Copy file name to clipboardExpand all lines: docs/adapters.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,12 @@ The LocalStorage plugin should be considered highly experimental, and the underl
122
122
123
123
#### In-memory
124
124
125
+
{% include alert/start.html variant="warning"%}
126
+
{% markdown %}
127
+
**Warning: deprecation notice.** The `memory` adapter will be deprecated in PouchDB version 10.0.0 and removed in version 11.0.0. You can read [the migration guide here](https://pouchdb.com/2026/04/10/migration-to-nodesqlite.html) and more about the topic in [this link](https://github.com/apache/pouchdb/issues/9163).
128
+
{% endmarkdown %}
129
+
{% include alert/end.html%}
130
+
125
131
Just as in the browser, you can also create a pure in-memory PouchDB:
126
132
127
133
```
@@ -139,23 +145,23 @@ This implementation is based on [MemDOWN](https://github.com/level/memdown), and
139
145
140
146
#### Node SQLite adapter
141
147
142
-
You can also use PouchDB over [SQLite3](https://github.com/mapbox/node-sqlite3) in Node, using the WebSQL adapter and
In this case, PouchDB is directly using SQLite queries to build the database, exactly as the WebSQL adapter would.
153
-
154
-
See ["Prebuilt databases with PouchDB"]({{ site.baseurl }}/2016/04/28/prebuilt-databases-with-pouchdb.html)
155
-
for a guide to how you might use this adapter to create prebuilt SQLite database files for adapters such as Cordova or Electron.
156
-
157
157
#### Other LevelDOWN adapters
158
158
159
+
{% include alert/start.html variant="warning"%}
160
+
{% markdown %}
161
+
**Warning: deprecation notice.** The `leveldb` adapter will be deprecated in PouchDB version 10.0.0 and removed in version 11.0.0. You can read [the migration guide here](https://pouchdb.com/2026/04/10/migration-to-nodesqlite.html) and more about the topic in [this link](https://github.com/apache/pouchdb/issues/9163).
162
+
{% endmarkdown %}
163
+
{% include alert/end.html%}
164
+
159
165
Technically you are free to use
160
166
[any LevelDOWN-based implementation](https://github.com/rvagg/node-levelup/wiki/Modules#storage-back-ends) in either Node or the browser.
161
167
However this should be considered **extremely experimental** and not designed for production use.
**Warning: deprecation notice.** The `leveldb` adapter will be deprecated in PouchDB version 10.0.0 and removed in version 11.0.0. You can read [the migration guide here](https://pouchdb.com/2026/04/10/migration-to-nodesqlite.html) and more about the topic in [this link](https://github.com/apache/pouchdb/issues/9163).
181
+
{% endmarkdown %}
182
+
{% include alert/end.html%}
183
+
178
184
The primary adapter used by PouchDB in Node.js, using LevelDB. The adapter name
**Warning: deprecation notice.** The `memory` adapter will be deprecated in PouchDB version 10.0.0 and removed in version 11.0.0. You can read [the migration guide here](https://pouchdb.com/2026/04/10/migration-to-nodesqlite.html) and more about the topic in [this link](https://github.com/apache/pouchdb/issues/9163).
225
+
{% endmarkdown %}
226
+
{% include alert/end.html%}
227
+
216
228
An optional adapter that works in the browser and Node.js, fully in-memory. The adapter name
0 commit comments