CollectionSpec

class CollectionSpec(scopeName: String, name: String, maxExpiry: Duration?, history: Boolean?)

Information about a collection.

Constructors

Link copied to clipboard
fun CollectionSpec(scopeName: String, name: String, maxExpiry: Duration? = null)
Link copied to clipboard
fun CollectionSpec(scopeName: String, name: String, maxExpiry: Duration? = null, history: Boolean? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun copy(scopeName: String = this.scopeName, name: String = this.name, maxExpiry: Duration? = this.maxExpiry): CollectionSpec
fun copy(scopeName: String = this.scopeName, name: String = this.name, maxExpiry: Duration? = this.maxExpiry, history: Boolean? = this.history): CollectionSpec
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val history: Boolean? = null
Link copied to clipboard
val maxExpiry: Duration? = null

Maximum expiry for documents in the collection. Null means the collection's max expiry is always the same as the bucket's max expiry. A duration equal to NEVER_EXPIRE (-1 seconds) means documents in the collection never expire, regardless of the bucket's max expiry.

Link copied to clipboard
val name: String

Name of the collection

Link copied to clipboard
val scopeName: String

Name of the parent scope