toasty_core/stmt/table_factor.rs
1use super::SourceTableId;
2
3/// A table reference within a [`TableWithJoins`](super::TableWithJoins) relation.
4///
5/// Currently only supports direct table references via [`SourceTableId`].
6///
7/// # Examples
8///
9/// ```ignore
10/// use toasty_core::stmt::{TableFactor, SourceTableId};
11///
12/// let factor = TableFactor::Table(SourceTableId(0));
13/// ```
14#[derive(Debug, Clone, PartialEq)]
15pub enum TableFactor {
16 /// A reference to a table in the [`SourceTable::tables`](super::SourceTable) vector.
17 Table(SourceTableId),
18}