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

Method has_parameter

crates/sql-parser/src/ast/mod.rs:150–156  ·  view source on GitHub ↗

Is this AST parameterized? We need to know in order to hash subscription queries correctly.

(&self)

Source from the content-addressed store, hash-verified

148 /// Is this AST parameterized?
149 /// We need to know in order to hash subscription queries correctly.
150 pub fn has_parameter(&self) -> bool {
151 match self {
152 Self::Lit(_) | Self::Var(_) | Self::Field(..) => false,
153 Self::Param(Parameter::Sender) => true,
154 Self::Bin(a, b, _) | Self::Log(a, b, _) => a.has_parameter() || b.has_parameter(),
155 }
156 }
157
158 /// Replace the `:sender` parameter with the [Identity] it represents
159 pub fn resolve_sender(self, sender_identity: Identity) -> Self {

Callers 1

parse_and_type_subFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected