updateCollection

@SinceCouchbase(value = "7.2")
suspend fun updateCollection(scopeName: String, collectionName: String, common: CommonOptions = CommonOptions.Default, @SinceCouchbase(value = "7.6") maxExpiry: Duration? = null, history: Boolean? = null)

Modifies an existing collection.

Parameters

scopeName

Name of the parent scope. This scope must already exist.

collectionName

Name of the collection to update. This collection must already exist.

maxExpiry

New value for the maximum expiry for documents in the collection (Duration.ZERO means "no expiry"), or null to leave unmodified.

history

New value for history preservation for this collection, or null to leave unmodified.

Throws

com.couchbase.client.core.error.ScopeNotFoundException

if the parent scope does not exist.

com.couchbase.client.core.error.CollectionNotFoundException

if the collection does not exist.