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

Function iter_views

crates/codegen/src/util.rs:165–167  ·  view source on GitHub ↗

Iterate over all the [`ViewDef`]s defined by the module, in alphabetical order by name. Sorting is necessary to have deterministic reproducible codegen.

(module: &ModuleDef)

Source from the content-addressed store, hash-verified

163///
164/// Sorting is necessary to have deterministic reproducible codegen.
165pub(super) fn iter_views(module: &ModuleDef) -> impl Iterator<Item = &ViewDef> {
166 module.views().sorted_by_key(|view| &view.name)
167}
168
169/// Iterate over the names of all the tables and views defined by the module, in alphabetical order.
170///

Calls 1

viewsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…