MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_show_columns

Method parse_show_columns

src/sql-parser/src/parser.rs:8255–8266  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

8253 }
8254
8255 fn parse_show_columns(&mut self) -> Result<ShowStatement<Raw>, ParserError> {
8256 self.expect_one_of_keywords(&[FROM, IN])?;
8257 let table_name = self.parse_raw_name()?;
8258 // MySQL also supports FROM <database> here. In other words, MySQL
8259 // allows both FROM <table> FROM <database> and FROM <database>.<table>,
8260 // while we only support the latter for now.
8261 let filter = self.parse_show_statement_filter()?;
8262 Ok(ShowStatement::ShowColumns(ShowColumnsStatement {
8263 table_name,
8264 filter,
8265 }))
8266 }
8267
8268 fn parse_show_statement_filter(
8269 &mut self,

Callers 1

parse_showMethod · 0.80

Calls 3

parse_raw_nameMethod · 0.80

Tested by

no test coverage detected