MCPcopy Create free account
hub / github.com/couchbase/moss / NewChildCollectionBatch

Method NewChildCollectionBatch

api.go:368–368  ·  view source on GitHub ↗

NewChildCollectionBatch returns a new Batch instance with preallocated resources for a specific child collection given its unique name. The child Batch will be executed atomically along with any other child batches and with the top-level Batch when the top-level Batch is executed. The child collecti

(collectionName string, options BatchOptions)

Source from the content-addressed store, hash-verified

366 // The child collection name should not start with a '.' (period)
367 // as those are reserved for future moss usage.
368 NewChildCollectionBatch(collectionName string, options BatchOptions) (Batch, error)
369
370 // DelChildCollection records a child collection deletion given the name.
371 // It only takes effect when the top-level batch is executed.

Callers 4

testSimpleStoreExFunction · 0.95
runTestPersisterFunction · 0.95
childCollectionLoaderFunction · 0.95
testChildCollectionsFunction · 0.95

Calls

no outgoing calls

Tested by 4

testSimpleStoreExFunction · 0.76
runTestPersisterFunction · 0.76
childCollectionLoaderFunction · 0.76
testChildCollectionsFunction · 0.76