CollectionSpec

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

Information about a collection.

Constructors

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

Functions

Link copied to clipboard
fun copy(scopeName: String = this.scopeName, name: String = this.name, maxExpiry: Duration? = this.maxExpiry): 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 maxExpiry: Duration? = null

Maximum expiry for documents in the collection, or null if unlimited.

Link copied to clipboard
val name: String

Name of the collection

Link copied to clipboard
val scopeName: String

Name of the parent scope