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

Method nfields

crates/expr/src/expr.rs:304–310  ·  view source on GitHub ↗

The number of fields this expression returns

(&self)

Source from the content-addressed store, hash-verified

302
303 /// The number of fields this expression returns
304 pub fn nfields(&self) -> usize {
305 match self {
306 Self::RelVar(..) => 1,
307 Self::LeftDeepJoin(join) | Self::EqJoin(join, ..) => join.lhs.nfields() + 1,
308 Self::Select(input, _) => input.nfields(),
309 }
310 }
311
312 /// Does this expression return this field?
313 pub fn has_field(&self, field: &str) -> bool {

Callers 1

type_projFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected