MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Get1xBody

Method Get1xBody

db/crud.go:285–287  ·  view source on GitHub ↗

Returns the body of the current revision of a document

(ctx context.Context, docid string)

Source from the content-addressed store, hash-verified

283
284// Returns the body of the current revision of a document
285func (db *DatabaseCollectionWithUser) Get1xBody(ctx context.Context, docid string) (Body, error) {
286 return db.Get1xRevBody(ctx, docid, "", false, nil)
287}
288
289// Get Rev with all-or-none history based on specified 'history' flag
290func (db *DatabaseCollectionWithUser) Get1xRevBody(ctx context.Context, docid, revOrCV string, history bool, attachmentsSince []string) (Body, error) {

Calls 1

Get1xRevBodyMethod · 0.95