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

Function iter_indexes

crates/codegen/src/util.rs:211–213  ·  view source on GitHub ↗
(table: &TableDef)

Source from the content-addressed store, hash-verified

209}
210
211pub(super) fn iter_indexes(table: &TableDef) -> impl Iterator<Item = &IndexDef> {
212 table.indexes.values().sorted_by_key(|index| &index.name)
213}
214
215pub(super) fn iter_constraints(table: &TableDef) -> impl Iterator<Item = &ConstraintDef> {
216 table.constraints.values().sorted_by_key(|constraint| &constraint.name)

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…