pub fn parse_or_unparsed(query: &str) -> MonitorQueryExpand description
Parse a query, degrading to MonitorQuery::Unparsed on failure.
This is the entry point for offline batch processing where a single unparsable query must never drop the surrounding record: the raw string, failure reason, and byte offset are preserved so a consumer can still render the original query verbatim.
ยงExamples
use ddquery_core::{parse_or_unparsed, MonitorQuery};
let q = parse_or_unparsed("this is not a valid query !!!");
assert!(matches!(q, MonitorQuery::Unparsed { .. }));