MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_not

Function parse_not

nodedb-sql/src/functions/fts_ops/tsquery_parser.rs:135–142  ·  view source on GitHub ↗
(tokens: &[String], pos: &mut usize)

Source from the content-addressed store, hash-verified

133}
134
135fn parse_not(tokens: &[String], pos: &mut usize) -> Result<FtsQuery> {
136 if *pos < tokens.len() && tokens[*pos] == "!" {
137 *pos += 1;
138 let inner = parse_not(tokens, pos)?;
139 return Ok(FtsQuery::Not(Box::new(inner)));
140 }
141 parse_atom(tokens, pos)
142}
143
144fn parse_atom(tokens: &[String], pos: &mut usize) -> Result<FtsQuery> {
145 if *pos >= tokens.len() {

Callers 1

parse_andFunction · 0.70

Calls 2

parse_atomFunction · 0.70
lenMethod · 0.45

Tested by

no test coverage detected