as

infix fun Expression.as(alias: String): SelectResult.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

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

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.