Skip to content

Commit 7338c4c

Browse files
Merge branch 'master' into bot/ws-nonresponsive-client-metric
2 parents 3a5d379 + b85f778 commit 7338c4c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/docs/00200-core-concepts/00100-databases/00500-cheat-sheet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ ctx.db // Database access
771771
ctx.sender // Identity of caller
772772
ctx.connectionId // ConnectionId | undefined
773773
ctx.timestamp // Timestamp
774-
ctx.identity // Module's identity
774+
ctx.databaseIdentity // Module's identity
775775
```
776776

777777
</TabItem>
@@ -782,7 +782,7 @@ ctx.Db // Database access
782782
ctx.Sender // Identity of caller
783783
ctx.ConnectionId // ConnectionId?
784784
ctx.Timestamp // Timestamp
785-
ctx.Identity // Module's identity
785+
ctx.DatabaseIdentity // Module's identity
786786
ctx.Rng // Random number generator
787787
```
788788

@@ -794,7 +794,7 @@ ctx.db // Database access
794794
ctx.sender() // Identity of caller
795795
ctx.connection_id() // Option<ConnectionId>
796796
ctx.timestamp // Timestamp
797-
ctx.identity() // Module's identity
797+
ctx.database_identity() // Module's identity
798798
ctx.rng() // Random number generator
799799
```
800800

@@ -806,7 +806,7 @@ ctx.db // Database access (Table accessor)
806806
ctx.sender() // Identity of caller (Identity type)
807807
ctx.connection_id // std::optional<ConnectionId>
808808
ctx.timestamp // Timestamp of current transaction (Timestamp type)
809-
ctx.identity() // Module's own identity (Identity type)
809+
ctx.database_identity() // Module's own identity (Identity type)
810810
ctx.rng() // Random number generator (for seeded randomness)
811811
```
812812

docs/docs/00200-core-concepts/00200-functions/00300-reducers/00400-reducer-context.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ SPACETIMEDB_REDUCER(send_reminder, ReducerContext _ctx, ScheduledTask task) {
400400
| `ConnectionId` | `ConnectionId?` | Connection ID of the caller, if available |
401401
| `Timestamp` | `Timestamp` | Time when the reducer was invoked |
402402
| `Rng` | `Random` | Random number generator |
403-
| `Identity` | `Identity` | The module's identity |
403+
| `DatabaseIdentity` | `Identity` | The module's identity |
404404
</TabItem>
405405
<TabItem value="rust" label="Rust">
406406
@@ -413,7 +413,7 @@ SPACETIMEDB_REDUCER(send_reminder, ReducerContext _ctx, ScheduledTask task) {
413413
414414
**Methods:**
415415
416-
- `identity() -> Identity` - Get the module's identity
416+
- `database_identity() -> Identity` - Get the module's identity
417417
- `rng() -> &StdbRng` - Get the random number generator
418418
- `random<T>() -> T` - Generate a single random value
419419
- `sender_auth() -> &AuthCtx` - Get authorization context for the caller (includes JWT claims and internal call detection)
@@ -429,7 +429,7 @@ SPACETIMEDB_REDUCER(send_reminder, ReducerContext _ctx, ScheduledTask task) {
429429
430430
**Methods:**
431431
432-
- `identity() -> Identity` - Get the module's identity
432+
- `database_identity() -> Identity` - Get the module's identity
433433
- `rng() -> StdbRng&` - Get the random number generator (deterministic and reproducible)
434434
- `sender_auth() -> const AuthCtx&` - Get authorization context for the caller (includes JWT claims and internal call detection)
435435

0 commit comments

Comments
 (0)