CopyTarget in sqlparser::ast - Rust

Skip to main content

pub enum CopyTarget {
    Stdin,
    Stdout,
    File {
        filename: String,
    },
    Program {
        command: String,
    },
}
Expand description

Target for the COPY command: STDIN, STDOUT, a file, or a program.

Variants§

§

Stdin

Use standard input as the source.

§

Stdout

Use standard output as the target.

§

File

Read from or write to a file.

Fields

§filename: String

The path name of the input or output file.

§

Program

Use a program as the source or target (shell command).

Fields

§command: String

A command to execute

Trait Implementations§

Auto Trait Implementations§

§

impl Freeze for CopyTarget

§

impl RefUnwindSafe for CopyTarget

§

impl Send for CopyTarget

§

impl Sync for CopyTarget

§

impl Unpin for CopyTarget

§

impl UnwindSafe for CopyTarget

Blanket Implementations§