Trait QueryCopy

Source
pub trait QueryCopy {
    type SqlIdType;

    const SQL_ID: Self::SqlIdType;
    const SQL_TEXT: &'static str;
}
Expand description

Trait for COPY queries.

It is a special case and Postgres’ server/client behavior.

pg_sql! {
    impl QueryId::SqlShortName {
        COPY pg_catalog.pg_namespace TO stdout
    }
}

Required Associated Constants§

Source

const SQL_ID: Self::SqlIdType

Source

const SQL_TEXT: &'static str

Required Associated Types§

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.

Implementors§