ArraySql

Trait ArraySql 

Source
pub trait ArraySql:
    Debug
    + ToSql
    + Send
    + Sync {
    type Item;

    // Required method
    fn escape_domain_to_sql(
        &self,
        ty: &Type,
        w: &mut BytesMut,
    ) -> Result<IsNull, Box<dyn Error + Sync + Send>>;
}

Required Associated Types§

Required Methods§

Source

fn escape_domain_to_sql( &self, ty: &Type, w: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>

Implementations on Foreign Types§

Source§

impl<T: Debug + ToSql + Send + Sync> ArraySql for Vec<T>

Source§

type Item = T

Source§

fn escape_domain_to_sql( &self, ty: &Type, w: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>

Source§

impl<T: Debug + ToSql + Sync> ArraySql for &[T]

Source§

type Item = T

Source§

fn escape_domain_to_sql( &self, ty: &Type, w: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>

Source§

impl<T: Debug + ToSql + Sync, A: ArraySql<Item = T>> ArraySql for &A

Source§

type Item = T

Source§

fn escape_domain_to_sql( &self, ty: &Type, w: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>

Implementors§

Source§

impl<T: Debug + ToSql + Send + Sync, I: Iterator<Item = T> + ExactSizeIterator, F: Fn() -> I + Send + Sync> ArraySql for IterSql<T, I, F>

Source§

type Item = T