pub struct TableFunction {
pub name: String,
pub params: Vec<(String, bool, Vec<String>)>,
pub body: Query,
}Expand description
CREATE TABLE FUNCTION name(params) AS query: kept so a call can be read as the query it stands for.
Fields§
§name: String§params: Vec<(String, bool, Vec<String>)>(name, is a table parameter, the columns it declares).
body: QueryTrait Implementations§
Source§impl Clone for TableFunction
impl Clone for TableFunction
Source§impl Debug for TableFunction
impl Debug for TableFunction
Source§impl<'de> Deserialize<'de> for TableFunction
impl<'de> Deserialize<'de> for TableFunction
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
impl Eq for TableFunction
Source§impl PartialEq for TableFunction
impl PartialEq for TableFunction
Source§impl Serialize for TableFunction
impl Serialize for TableFunction
impl StructuralPartialEq for TableFunction
Auto Trait Implementations§
impl Forget for TableFunction
impl Freeze for TableFunctionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, bool, Vec<String>)>: Freeze,
PhantomData<Cte>: Freeze,
*const Select is !null: Freeze,
PhantomData<Select>: Freeze,
*const Query is !null: Freeze,
PhantomData<Query>: Freeze,
PhantomData<Ident>: Freeze,
*const SetExpr is !null: Freeze,
PhantomData<SetExpr>: Freeze,
PhantomData<TableWithJoins>: Freeze,
PhantomData<OrderByExpr>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const DataType is !null: Freeze,
PhantomData<DataType>: Freeze,
PhantomData<CaseWhen>: Freeze,
PhantomData<StructField>: Freeze,
PhantomData<StructExprField>: Freeze,
*const Function is !null: Freeze,
PhantomData<Function>: Freeze,
PhantomData<(Ident, Expr)>: Freeze,
PhantomData<PipeOperator>: Freeze,
impl Move for TableFunction
impl RefUnwindSafe for TableFunction
impl Send for TableFunction
impl Sync for TableFunction
impl Unpin for TableFunction
impl UnsafeUnpin for TableFunctionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, bool, Vec<String>)>: UnsafeUnpin,
PhantomData<Cte>: UnsafeUnpin,
*const Select is !null: UnsafeUnpin,
PhantomData<Select>: UnsafeUnpin,
*const Query is !null: UnsafeUnpin,
PhantomData<Query>: UnsafeUnpin,
PhantomData<Ident>: UnsafeUnpin,
*const SetExpr is !null: UnsafeUnpin,
PhantomData<SetExpr>: UnsafeUnpin,
PhantomData<TableWithJoins>: UnsafeUnpin,
PhantomData<OrderByExpr>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const DataType is !null: UnsafeUnpin,
PhantomData<DataType>: UnsafeUnpin,
PhantomData<CaseWhen>: UnsafeUnpin,
PhantomData<StructField>: UnsafeUnpin,
PhantomData<StructExprField>: UnsafeUnpin,
*const Function is !null: UnsafeUnpin,
PhantomData<Function>: UnsafeUnpin,
PhantomData<(Ident, Expr)>: UnsafeUnpin,
PhantomData<PipeOperator>: UnsafeUnpin,
impl UnwindSafe for TableFunctionwhere
RawVecInner: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<Select>: UnwindSafe,
BoxRaw<SetExpr>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<DataType>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
BoxRaw<TableWithJoins>: UnwindSafe,
BoxRaw<TableFactor>: UnwindSafe,
BoxRaw<MatchRecognize>: UnwindSafe,
BoxRaw<Align>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.