Table
A Table wraps a table name string, providing a type-safe way to reference SurrealDB tables. It can be used anywhere a RecordIdType is accepted.
Constructor
| Parameter | Type | Description |
|---|---|---|
table_name | str | The name of the table. |
Examples
Properties
| Property | Type | Description |
|---|---|---|
table_name | str | The table name string. |
Usage
Table is interchangeable with a plain str in most SDK methods. It is useful when you want to distinguish table references from arbitrary strings at the type level.
See Also
Data Types — All SDK data types
RecordID — Record identifier with table and ID components