Range
A Range represents a SurrealDB range value with a begin and end bound. Each bound can be inclusive or exclusive. Range is a Python dataclass.
Bound Classes
The Bound base class has two subclasses that define whether a boundary value is included or excluded.
BoundIncluded
An inclusive bound. The boundary value is part of the range.
| Property | Type | Description |
|---|---|---|
value | Value | The boundary value. |
BoundExcluded
An exclusive bound. The boundary value is not part of the range.
| Property | Type | Description |
|---|---|---|
value | Value | The boundary value. |
Range Dataclass
Fields
| Field | Type | Description |
|---|---|---|
begin | Bound | The start bound of the range. |
end | Bound | The end bound of the range. |
Constructor
| Parameter | Type | Description |
|---|---|---|
begin | Bound | The start bound (inclusive or exclusive). |
end | Bound | The end bound (inclusive or exclusive). |
Examples
See Also
Data Types — All SDK data types
RecordID — Record identifier