toasty-core 0.5.0

Core types, schema representations, and driver interface for Toasty
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::SourceTableId;

/// A table reference within a [`TableWithJoins`](super::TableWithJoins) relation.
///
/// Currently only supports direct table references via [`SourceTableId`].
///
/// # Examples
///
/// ```ignore
/// use toasty_core::stmt::{TableFactor, SourceTableId};
///
/// let factor = TableFactor::Table(SourceTableId(0));
/// ```
#[derive(Debug, Clone, PartialEq)]
pub enum TableFactor {
    /// A reference to a table in the [`SourceTable::tables`](super::SourceTable) vector.
    Table(SourceTableId),
}