GetWithCV returns the given revision by CV, and stores if not already cached. When includeDelta=true, the returned DocumentRevision will include delta - requires additional locking during retrieval. When loadBackup=true, will load from backup revisions if requested version is not active document
(ctx context.Context, docID string, cv *Version, collectionID uint32, includeDelta bool, loadBackup bool)
| 37 | // When includeDelta=true, the returned DocumentRevision will include delta - requires additional locking during retrieval. |
| 38 | // When loadBackup=true, will load from backup revisions if requested version is not active document |
| 39 | GetWithCV(ctx context.Context, docID string, cv *Version, collectionID uint32, includeDelta bool, loadBackup bool) (DocumentRevision, error) |
| 40 | |
| 41 | // GetActive returns the current revision for the given doc ID, and stores if not already cached. |
| 42 | GetActive(ctx context.Context, docID string, collectionID uint32) (docRev DocumentRevision, err error) |
no outgoing calls