Trait pleingres::ToSql

source ·
pub trait ToSql {
    fn write_sql(&self, w: &mut Vec<u8>) -> bool;

    fn sql_type(&self) -> SqlType { ... }
    fn format_code(&self) -> FormatCode { ... }
}
Expand description

Trait used to convert a type to its SQL representation.

Required Methods

How to serialize this type in a Postgres-compatible way. Returns true if and only if *self is not serialized to SQL NULL.

Provided Methods

Postgres type code for this type.

Postgres format code for this type.

Implementations on Foreign Types

Implementors