Decompose a [`TableReference`] to separate parts. The result vector contains at most three elements in the following sequence: ```no_rust [ , , table] ```
(&self)
| 319 | /// [<catalog>, <schema>, table] |
| 320 | /// ``` |
| 321 | pub fn to_vec(&self) -> Vec<String> { |
| 322 | match self { |
| 323 | TableReference::Bare { table } => vec![table.to_string()], |
| 324 | TableReference::Partial { schema, table } => { |
| 325 | vec![schema.to_string(), table.to_string()] |
| 326 | } |
| 327 | TableReference::Full { |
| 328 | catalog, |
| 329 | schema, |
| 330 | table, |
| 331 | } => vec![catalog.to_string(), schema.to_string(), table.to_string()], |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | /// Parse a string into a TableReference, normalizing where appropriate |
no outgoing calls