RecordIdRange targets a contiguous range of records within a table by their IDs. Pass it to the CRUD builders to operate on a range of records.
Source: surrealdb.kotlin
Import
import com.surrealdb.kotlin.query.RecordIdRangeConstructor
Method Syntax
RecordIdRange(table, start, end, includeEnd)Parameter | Type | Default | Description |
|---|---|---|---|
table | String | — | The table name. |
start | String? | null | The inclusive start ID, or nullfor unbounded. |
end | String? | null | The end ID, or nullfor unbounded. |
includeEnd | Boolean | false | Whether the endID is inclusive. |
Example
val range = RecordIdRange("person", start = "a", end = "m", includeEnd = true)
client.select(range).awaitAs<List<Person>>()Learn more
Record ranges in SurrealQL