MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / SPACETIMEDB_VIEW

Function SPACETIMEDB_VIEW

modules/module-test-cpp/src/lib.cpp:218–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216
217// View to find the player associated with the calling identity
218SPACETIMEDB_VIEW(std::optional<Player>, my_player, Public, ViewContext ctx) {
219 return ctx.db[player_identity].find(ctx.sender());
220}
221
222SPACETIMEDB_VIEW(std::optional<Person>, first_person, Public, AnonymousViewContext ctx) {
223 (void)ctx;

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
senderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…