LiteCore
Couchbase Lite cross-platform core implementation
|
Parameters for adding a revision using c4doc_put. More...
#include <c4DocumentTypes.h>
Data Fields | |
C4String | body |
Revision's body. | |
C4String | docID |
Document ID. | |
C4RevisionFlags | revFlags |
Revision flags (deletion, attachments, keepBody) | |
bool | existingRevision |
Is this an already-existing rev coming from replication? | |
bool | allowConflict |
OK to create a conflict, i.e. can parent be non-leaf? | |
const C4String * | history |
Array of ancestor revision IDs. | |
size_t | historyCount |
Size of history[] array. | |
bool | save |
Save the document after inserting the revision? | |
uint32_t | maxRevTreeDepth |
Max depth of revision tree to save (or 0 for default) | |
C4RemoteID | remoteDBID |
Identifier of remote db this rev's from (or 0 if local) | |
C4SliceResult | allocedBody |
Set this instead of body if body is heap-allocated. | |
C4DocDeltaApplier | deltaCB |
If non-NULL, will be called to generate the actual body. | |
void * | deltaCBContext |
Passed to deltaCB callback. | |
C4String | deltaSourceRevID |
Source rev for delta (must be valid if deltaCB is given) | |
Parameters for adding a revision using c4doc_put.
C4SliceResult C4DocPutRequest::allocedBody |
Set this instead of body if body is heap-allocated.
bool C4DocPutRequest::allowConflict |
OK to create a conflict, i.e. can parent be non-leaf?
C4String C4DocPutRequest::body |
Revision's body.
C4DocDeltaApplier C4DocPutRequest::deltaCB |
If non-NULL, will be called to generate the actual body.
void* C4DocPutRequest::deltaCBContext |
Passed to deltaCB
callback.
C4String C4DocPutRequest::deltaSourceRevID |
Source rev for delta (must be valid if deltaCB is given)
C4String C4DocPutRequest::docID |
Document ID.
bool C4DocPutRequest::existingRevision |
Is this an already-existing rev coming from replication?
const C4String* C4DocPutRequest::history |
Array of ancestor revision IDs.
size_t C4DocPutRequest::historyCount |
Size of history[] array.
uint32_t C4DocPutRequest::maxRevTreeDepth |
Max depth of revision tree to save (or 0 for default)
C4RemoteID C4DocPutRequest::remoteDBID |
Identifier of remote db this rev's from (or 0 if local)
C4RevisionFlags C4DocPutRequest::revFlags |
Revision flags (deletion, attachments, keepBody)
bool C4DocPutRequest::save |
Save the document after inserting the revision?