database

expect fun database(database: Database): DataSource.As(source)

Deprecated

Use DataSource.collection(Collection)

Replace with

collection(database.defaultCollection)

Create a database as a data source.

Return

DataSource object.

Parameters

database

the database used as a source of data for query.

actual fun database(database: Database): DataSource.As(source)

Deprecated

Use DataSource.collection(Collection)

Replace with

collection(database.defaultCollection)
actual fun database(database: Database): DataSource.As(source)

Deprecated

Use DataSource.collection(Collection)

Replace with

collection(database.defaultCollection)