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

Function is_count

crates/sql-parser/src/parser/mod.rs:156–162  ·  view source on GitHub ↗
(name: &ObjectName)

Source from the content-addressed store, hash-verified

154/// Parse an aggregate function in a select list
155fn parse_agg_fn(agg_fn: Function, alias: SqlIdent) -> SqlParseResult<Project> {
156 fn is_count(name: &ObjectName) -> bool {
157 name.0.len() == 1
158 && name
159 .0
160 .first()
161 .is_some_and(|Ident { value, .. }| value.to_lowercase() == "count")
162 }
163 match agg_fn {
164 Function {
165 name,

Callers 1

parse_agg_fnFunction · 0.85

Calls 2

to_lowercaseMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…