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

Method parse_tile_order

nodedb-sql/src/parser/array_stmt/parse_impl.rs:287–296  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

285 }
286
287 fn parse_tile_order(&mut self) -> Result<ArrayTileOrderAst> {
288 let id = self.expect_ident()?;
289 match id.to_ascii_uppercase().as_str() {
290 "ROW_MAJOR" => Ok(ArrayTileOrderAst::RowMajor),
291 "COL_MAJOR" => Ok(ArrayTileOrderAst::ColMajor),
292 "HILBERT" => Ok(ArrayTileOrderAst::Hilbert),
293 "ZORDER" | "Z_ORDER" => Ok(ArrayTileOrderAst::ZOrder),
294 other => Err(self.err(format!("unknown TILE_ORDER `{other}`"))),
295 }
296 }
297
298 // ── DROP ARRAY ───────────────────────────────────────────────
299

Callers 1

parse_createMethod · 0.80

Calls 3

expect_identMethod · 0.80
as_strMethod · 0.45
errMethod · 0.45

Tested by

no test coverage detected