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

Function event_table_module

crates/engine/src/update.rs:630–641  ·  view source on GitHub ↗
(product_type: ProductType)

Source from the content-addressed store, hash-verified

628 }
629
630 fn event_table_module(product_type: ProductType) -> ModuleDef {
631 let mut builder = RawModuleDefV10Builder::new();
632 builder
633 .build_table_with_new_type("events", product_type, true)
634 .with_event(true)
635 .with_access(TableAccess::Public)
636 .finish();
637 builder
638 .finish()
639 .try_into()
640 .expect("should be a valid module definition")
641 }
642
643 fn view_module() -> ModuleDef {
644 let mut builder = RawModuleDefV10Builder::new();

Callers 2

replay_event_table_dropFunction · 0.85

Calls 6

with_eventMethod · 0.80
try_intoMethod · 0.80
newFunction · 0.50
finishMethod · 0.45
with_accessMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…