pub fn try_parse(sql: &str) -> Option<NodedbStatement>Expand description
Entry point: returns Some when sql starts with a graph DSL
keyword (GRAPH ..., MATCH ..., OPTIONAL MATCH ...), else
None so the main DDL parser can continue trying other cases.
Within those prefixes a malformed statement still returns
Some(stmt) whenever a sensible variant can be produced; the
pgwire handler decides whether required fields are present.
Statements that cannot be shaped into any variant return None
so the legacy string-prefix router can still handle them during
the migration window.