select

fun select(expression: Expression, vararg expressions: Expression): Select(source)

Create a SELECT statement instance that you can use further (e.g. calling the from() function) to construct the complete query statement.

Commonly used for select(Meta.id) to get a document's ID, or other metadata or expressions.

SELECT Meta().id

Return

A Select object.

Parameters

expressions

The expressions for specifying the returned values.


fun select(expression: Expression, property: String, vararg properties: String): Select(source)

Create a SELECT statement instance that you can use further (e.g. calling the from() function) to construct the complete query statement.

Commonly used for select(Meta.id, "foo", "bar") to get a document's ID along with a set of fields.

SELECT Meta().id, foo, bar

Return

A Select object.

Parameters

expression

An expression for specifying the returned value.

properties

Properties for specifying the returned values.


fun select(expression: Expression, result: SelectResult, vararg results: SelectResult): Select(source)

Create a SELECT statement instance that you can use further (e.g. calling the from() function) to construct the complete query statement.

Commonly used for select(Meta.id, all()) to get all of the document, including ID.

SELECT Meta().id, *

Return

A Select object.

Parameters

expression

An expression for specifying the returned value.

results

The SelectResult objects for specifying the returned values.


fun select(vararg results: SelectResult): Select(source)

Create a SELECT statement instance that you can use further (e.g. calling the from() function) to construct the complete query statement.

Return

A Select object.

Parameters

results

The SelectResult objects for specifying the returned values.


fun select(vararg properties: String): Select(source)

Create a SELECT statement instance that you can use further (e.g. calling the from() function) to construct the complete query statement.

Return

A Select object.

Parameters

properties

The properties for specifying the returned values.