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

Function parse_parts

crates/sql-parser/src/parser/mod.rs:347–352  ·  view source on GitHub ↗

Parse an identifier

(mut parts: Vec<Ident>)

Source from the content-addressed store, hash-verified

345
346/// Parse an identifier
347pub(crate) fn parse_parts(mut parts: Vec<Ident>) -> SqlParseResult<SqlIdent> {
348 if parts.len() == 1 {
349 return Ok(parts.swap_remove(0).into());
350 }
351 Err(SqlUnsupported::MultiPartName(ObjectName(parts)).into())
352}

Callers 3

parse_statementFunction · 0.85
parse_assignmentFunction · 0.85
parse_identFunction · 0.85

Calls 3

OkFunction · 0.50
ErrFunction · 0.50
lenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…