(toks: &[Tok<'_>])
| 114 | } |
| 115 | |
| 116 | pub(super) fn extract_properties(toks: &[Tok<'_>]) -> GraphProperties { |
| 117 | let Some(pos) = find_keyword(toks, "PROPERTIES") else { |
| 118 | return GraphProperties::None; |
| 119 | }; |
| 120 | match toks.get(pos + 1) { |
| 121 | Some(Tok::Object(obj_str)) => GraphProperties::Object((*obj_str).to_string()), |
| 122 | Some(Tok::Quoted(s)) => GraphProperties::Quoted(s.clone().into_owned()), |
| 123 | _ => GraphProperties::None, |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | /// Extract `ARRAY[f1, f2, …]` that appears after `keyword` in raw SQL. |
| 128 | /// |
no test coverage detected