pub struct CopyRelation {
pub name: String,
pub columns: Vec<String>,
pub selected: Vec<usize>,
pub query: Node,
pub partitions: Option<Vec<u32>>,
}Expand description
The relation of a COPY ... TO and the query that reads its rows.
Fields§
§name: StringThe name of the relation, for the errors.
columns: Vec<String>The names of the user columns of the relation, in the order of the catalog.
selected: Vec<usize>The columns that COPY sends, as indexes into columns.
query: NodeSELECT of the selected columns FROM ONLY the relation. For a partitioned table, the query reads the partitions, and tableoid comes after the selected columns.
partitions: Option<Vec<u32>>The partitions of a partitioned table that have rows, in the order of find_all_inheritors. DoCopyTo sends the rows of each partition in this order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CopyRelation
impl RefUnwindSafe for CopyRelation
impl Send for CopyRelation
impl Sync for CopyRelation
impl Unpin for CopyRelation
impl UnsafeUnpin for CopyRelation
impl UnwindSafe for CopyRelation
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