selectAsJson

suspend fun Surreal.selectAsJson(table: String): JsonArray

Select

Select all records in a table.

Return

The records in the table


suspend fun Surreal.selectAsJson(table: String, id: String): JsonObject

Select

Select a specific record in a table.

Return

The record in the table

Parameters

table

The table to select the record from

id

The id of the record to select


suspend fun Surreal.selectAsJson(id: Thing<*>): JsonObject

Select

Select a specific record in a table.

Return

The record in the table

Parameters

id

The id of the record to select