Scope

expect class Scope(source)

A Scope represents a scope or namespace of collections.

The scope implicitly exists when there is at least one collection created under the scope. The default scope is exceptional in that it will always exist even when there are no collections under it.

A Scope object remains valid until either the database is closed or the scope itself is invalidated as all collections in the scope have been deleted.

actual class Scope : DelegatedClass<<Error class: unknown class>> (source)
actual class Scope(source)

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard

Get all collections in the scope.

Link copied to clipboard
expect val database: Database

Database

actual val database: Database
actual val database: Database
Link copied to clipboard
expect val name: String

The scope name.

actual val name: String
actual val name: String

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
expect fun getCollection(collectionName: String): Collection?

Get the named collection for the scope.

actual fun getCollection(collectionName: String): Collection?
actual fun getCollection(collectionName: String): Collection?
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String