Trait IntoSQL

Source
pub trait IntoSQL {
    const IS_NULLABLE: bool = false;

    // Required method
    fn into_sql() -> DataType;
}
Expand description

Do not use this trait in your production code. Its intended use is for migration generation only. It will panic if used outside its intended API.

Provided Associated Constants§

Source

const IS_NULLABLE: bool = false

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl IntoSQL for bool

Source§

impl IntoSQL for f32

Source§

impl IntoSQL for f64

Source§

impl IntoSQL for i8

Source§

impl IntoSQL for i16

Source§

impl IntoSQL for i32

Source§

impl IntoSQL for i64

Source§

impl IntoSQL for u32

Source§

impl IntoSQL for String

Source§

impl IntoSQL for Vec<u8>

Source§

impl<T: IntoSQL> IntoSQL for Option<T>

Source§

impl<const N: usize> IntoSQL for [u8; N]

Implementors§

Source§

impl IntoSQL for BigSerial

Source§

impl IntoSQL for Serial

Source§

impl<T> IntoSQL for Date<T>

Source§

const IS_NULLABLE: bool = false

Source§

impl<T> IntoSQL for DateTime<T>

Source§

const IS_NULLABLE: bool = false

Source§

impl<T> IntoSQL for Timestamp<T>

Source§

const IS_NULLABLE: bool = false

Source§

impl<const N: u64> IntoSQL for VarBinary<N>

Source§

const IS_NULLABLE: bool = false

Source§

impl<const N: u64> IntoSQL for VarChar<N>

Source§

const IS_NULLABLE: bool = false