join

abstract fun join(table: KQLiteTable): JoinStatement<T>

Adds a JOIN clause to the SELECT statement.

By default, this performs an INNER JOIN. To specify a different join type, use innerJoin, leftJoin, rightJoin, fullJoin, or crossJoin.

After calling this method, you must specify the join condition using the on or using methods provided by the returned JoinStatement.

Example

val cursor = Employees
.select()
.join(Departments)
.on(Employees.departmentId, Departments.id)
.execute()

Return

A JoinStatement to define the join condition (ON/USING).

Author

MOHAMMAD AZIM ANSARI

Parameters

table

The KQLiteTable to join with the current table.

See also


abstract fun join(selectStatement: SelectStatement<*>): JoinStatement<T>