${status}
Database
new Database<Note>("websharper-notes") stores documents in
IndexedDB. Info(), Type() and
PouchDB.Adapters describe the database and the adapters
compiled into the bundle.
- Version
- ${versionText}
- Adapters
- ${adapterText}
- Info
- ${infoText}
Documents
Post and Put write, AllDocs lists,
Get fetches by id, Remove deletes, and
BulkDocs writes several documents in one transaction.
${docText}
${bulkText}
Attachments
PutAttachment stores a Blob on a document and
GetAttachment reads it back as a Blob.
${attachmentText}
Changes feed
Changes(options) returns an event emitter that is also a
promise. Live = true keeps the feed open until
Cancel().
${changesText}
Map/reduce
A temporary view: Query(fun doc emit -> emit.Call(key, value)),
reduced with the built-in _count. The map function is called
with the documents (PouchDB only evals it when it takes a single
argument).
${queryText}
Replication
Replicate.To(name) and Sync(name) replicate to a
second local database; Database.Destroy() drops it again.
${replicationText}