pub struct CopyStmt {
pub this: Expression,
pub kind: bool,
pub files: Vec<Expression>,
pub params: Vec<CopyParameter>,
pub credentials: Option<Box<Credentials>>,
pub is_into: bool,
pub with_wrapped: bool,
}Expand description
COPY statement (Snowflake, PostgreSQL, DuckDB, TSQL)
Fields§
§this: ExpressionTarget table or query
kind: boolTrue for FROM (loading into table), false for TO (exporting)
files: Vec<Expression>Source/destination file(s) or stage
params: Vec<CopyParameter>Copy parameters
credentials: Option<Box<Credentials>>Credentials for external access
is_into: boolWhether the INTO keyword was used (COPY INTO vs COPY)
with_wrapped: boolWhether parameters are wrapped in WITH (…) syntax
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CopyStmt
impl<'de> Deserialize<'de> for CopyStmt
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 StructuralPartialEq for CopyStmt
Auto Trait Implementations§
impl Freeze for CopyStmt
impl RefUnwindSafe for CopyStmt
impl Send for CopyStmt
impl Sync for CopyStmt
impl Unpin for CopyStmt
impl UnwindSafe for CopyStmt
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