Get the [TableRef] from invoking the `self.schema_name()`
(&self)
| 35 | |
| 36 | /// Get the [TableRef] from invoking the `self.schema_name()` |
| 37 | fn table_ref(&self) -> TableRef { |
| 38 | match self.schema_name() { |
| 39 | Some(schema) => (Alias::new(schema).into_iden(), self.into_iden()).into_table_ref(), |
| 40 | None => self.into_table_ref(), |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | /// An abstract base class for defining Entities. |