diesel::pg

Trait CopyTarget

Source
pub trait CopyTarget {
    type Table: Table;
    type SqlType: SqlType;
}
Available on crate feature postgres_backend only.
Expand description

A expression that could be used as target/source for COPY FROM and COPY TO commands

This trait is implemented for any table type and for tuples of columns from the same table

Required Associated Types§

Source

type Table: Table

The table targeted by the command

Source

type SqlType: SqlType

The sql side type of the target expression

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, ST0> CopyTarget for (ST0,)
where ST0: Column<Table = T>, (<ST0 as Expression>::SqlType,): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1> CopyTarget for (ST0, ST1)
where ST0: Column<Table = T>, ST1: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2> CopyTarget for (ST0, ST1, ST2)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3> CopyTarget for (ST0, ST1, ST2, ST3)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4> CopyTarget for (ST0, ST1, ST2, ST3, ST4)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, ST8: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType, <ST8 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, ST8: Column<Table = T>, ST9: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType, <ST8 as Expression>::SqlType, <ST9 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, ST8: Column<Table = T>, ST9: Column<Table = T>, ST10: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType, <ST8 as Expression>::SqlType, <ST9 as Expression>::SqlType, <ST10 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, ST8: Column<Table = T>, ST9: Column<Table = T>, ST10: Column<Table = T>, ST11: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType, <ST8 as Expression>::SqlType, <ST9 as Expression>::SqlType, <ST10 as Expression>::SqlType, <ST11 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, ST8: Column<Table = T>, ST9: Column<Table = T>, ST10: Column<Table = T>, ST11: Column<Table = T>, ST12: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType, <ST8 as Expression>::SqlType, <ST9 as Expression>::SqlType, <ST10 as Expression>::SqlType, <ST11 as Expression>::SqlType, <ST12 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, ST8: Column<Table = T>, ST9: Column<Table = T>, ST10: Column<Table = T>, ST11: Column<Table = T>, ST12: Column<Table = T>, ST13: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType, <ST8 as Expression>::SqlType, <ST9 as Expression>::SqlType, <ST10 as Expression>::SqlType, <ST11 as Expression>::SqlType, <ST12 as Expression>::SqlType, <ST13 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, ST8: Column<Table = T>, ST9: Column<Table = T>, ST10: Column<Table = T>, ST11: Column<Table = T>, ST12: Column<Table = T>, ST13: Column<Table = T>, ST14: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType, <ST8 as Expression>::SqlType, <ST9 as Expression>::SqlType, <ST10 as Expression>::SqlType, <ST11 as Expression>::SqlType, <ST12 as Expression>::SqlType, <ST13 as Expression>::SqlType, <ST14 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Source§

impl<T, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15> CopyTarget for (ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15)
where ST0: Column<Table = T>, ST1: Column<Table = T>, ST2: Column<Table = T>, ST3: Column<Table = T>, ST4: Column<Table = T>, ST5: Column<Table = T>, ST6: Column<Table = T>, ST7: Column<Table = T>, ST8: Column<Table = T>, ST9: Column<Table = T>, ST10: Column<Table = T>, ST11: Column<Table = T>, ST12: Column<Table = T>, ST13: Column<Table = T>, ST14: Column<Table = T>, ST15: Column<Table = T>, (<ST0 as Expression>::SqlType, <ST1 as Expression>::SqlType, <ST2 as Expression>::SqlType, <ST3 as Expression>::SqlType, <ST4 as Expression>::SqlType, <ST5 as Expression>::SqlType, <ST6 as Expression>::SqlType, <ST7 as Expression>::SqlType, <ST8 as Expression>::SqlType, <ST9 as Expression>::SqlType, <ST10 as Expression>::SqlType, <ST11 as Expression>::SqlType, <ST12 as Expression>::SqlType, <ST13 as Expression>::SqlType, <ST14 as Expression>::SqlType, <ST15 as Expression>::SqlType): SqlType, T: Table + StaticQueryFragment, T::Component: QueryFragment<Pg>, Self: ColumnList + Default,

Implementors§

Source§

impl<T> CopyTarget for T
where T: Table + StaticQueryFragment, T::SqlType: SqlType, T::AllColumns: ColumnList, T::Component: QueryFragment<Pg>,