Enum prqlc::ir::pl::TableExternRef
source · pub enum TableExternRef {
LocalTable(String),
Param(String),
}
Expand description
A reference to a table that is not in scope of this query.
Note: We’re not using this at the moment in crate::ir::rq::RelationKind, since we wanted to avoid nested enums, since they can’t be serialized to YAML at the moment. We may add this back in the future, or flatten it up to crate::ir::rq::RelationKind
Variants§
LocalTable(String)
Actual table in a database, that we can refer to by name in SQL
Param(String)
Placeholder for a relation that will be provided later. This is very similar to relational s-strings and may not even be needed for now, so it’s not documented anywhere. But it will be used in the future.
Trait Implementations§
source§impl Clone for TableExternRef
impl Clone for TableExternRef
source§fn clone(&self) -> TableExternRef
fn clone(&self) -> TableExternRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TableExternRef
impl Debug for TableExternRef
source§impl<'de> Deserialize<'de> for TableExternRef
impl<'de> Deserialize<'de> for TableExternRef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TableExternRef
impl PartialEq for TableExternRef
source§fn eq(&self, other: &TableExternRef) -> bool
fn eq(&self, other: &TableExternRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TableExternRef
impl Serialize for TableExternRef
impl Eq for TableExternRef
impl StructuralPartialEq for TableExternRef
Auto Trait Implementations§
impl RefUnwindSafe for TableExternRef
impl Send for TableExternRef
impl Sync for TableExternRef
impl Unpin for TableExternRef
impl UnwindSafe for TableExternRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more