You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Includes references to changes made by
clockworklabs/SpacetimeDB#2506 ,
which as of writing has not merged.
We should not push this commit live until after that PR is released.
Copy file name to clipboardExpand all lines: docs/modules/c-sharp/index.md
+12-1
Original file line number
Diff line number
Diff line change
@@ -611,6 +611,17 @@ public partial struct AcademicPaper {
611
611
612
612
Any table supports getting an [`Index`](#class-index) using `ctx.Db.{table}.{index}`. For example, `ctx.Db.academic_paper.TitleAndDate` or `ctx.Db.academic_paper.Venue`.
613
613
614
+
## Indexable Types
615
+
616
+
SpacetimeDB supports only a restricted set of types as index keys:
617
+
618
+
- Signed and unsigned integers of various widths.
619
+
-`bool`.
620
+
-`string`.
621
+
-[`Identity`](#struct-identity).
622
+
-[`ConnectionId`](#struct-connectionid).
623
+
-`enum`s annotated with [`SpacetimeDB.Type`](#attribute-spacetimedbtype).
624
+
614
625
## Class `Index`
615
626
616
627
```csharp
@@ -1391,4 +1402,4 @@ Stored in reducer-scheduling tables as a column.
0 commit comments