as

Specifies the alias for the Expression as a SelectResult object.

Return

The SelectResult object with the alias name specified.

Parameters

alias

The alias name.


infix fun Collection.as(alias: String): DataSource(source)

Set an alias to the collection as a data source.

Return

the data source object with the given alias set.

Parameters

alias

the alias to set.


infix fun Database.as(alias: String): DataSource(source)

Deprecated

Use Collection.`as`(String)

Replace with

defaultCollection.`as`(alias)

Set an alias to the database as a data source.

Return

the data source object with the given alias set.

Parameters

alias

the alias to set.