Table refers to a table by name. Pass it to the CRUD builders to target every record in the table.
Source: surrealdb.kotlin
Import
import com.surrealdb.kotlin.query.TableConstructor
Method Syntax
Table(name)Parameter | Type | Description |
|---|---|---|
name | String | The table name. |
Example
val person = Table("person")
client.select(person).awaitAs<List<Person>>()When bound into a query, a Table is rendered with type::table(name) so the value is always passed safely.