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

Function gen_table_id

crates/commitlog/src/payload/txdata.rs:621–623  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619 use spacetimedb_sats::{product, AlgebraicType, ProductType, ProductValue};
620
621 fn gen_table_id() -> impl Strategy<Value = TableId> {
622 any::<u32>().prop_map(TableId)
623 }
624
625 fn gen_ops(pv: ProductValue) -> impl Strategy<Value = Ops<ProductValue>> {
626 (gen_table_id(), prop::collection::vec(Just(pv), 1..10)).prop_map(|(table_id, rowdata)| Ops {

Callers 2

gen_opsFunction · 0.85
gen_mutationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…