[−][src]Trait sqlx::encode::Encode
Encode a single value to be sent to the database.
Required methods
fn encode(&self, buf: &mut <DB as Database>::RawBuffer)
Writes the value of self
into buf
in the expected format for the database.
Provided methods
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
fn size_hint(&self) -> usize
Implementations on Foreign Types
impl<'_, T, DB> Encode<DB> for &'_ T where
DB: Database,
T: Type<DB> + Encode<DB> + ?Sized,
[src]
DB: Database,
T: Type<DB> + Encode<DB> + ?Sized,
fn encode(&self, buf: &mut <DB as Database>::RawBuffer)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for u16
[src]
impl Encode<Postgres> for [u8]
[src]
impl Encode<MySql> for u32
[src]
impl Encode<MySql> for f32
[src]
impl Encode<MySql> for i64
[src]
impl Encode<MySql> for [u8]
[src]
impl Encode<Postgres> for f64
[src]
impl Encode<MySql> for str
[src]
impl Encode<Postgres> for String
[src]
impl Encode<Postgres> for i64
[src]
impl<T, DB> Encode<DB> for Option<T> where
DB: Database,
T: Type<DB> + Encode<DB>,
[src]
DB: Database,
T: Type<DB> + Encode<DB>,
fn encode(&self, buf: &mut <DB as Database>::RawBuffer)
[src]
fn encode_nullable(&self, buf: &mut <DB as Database>::RawBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<MySql> for u8
[src]
impl Encode<MySql> for u64
[src]
impl Encode<MySql> for i16
[src]
impl Encode<MySql> for i32
[src]
impl Encode<Postgres> for f32
[src]
impl Encode<Postgres> for str
[src]
impl Encode<MySql> for f64
[src]
impl Encode<MySql> for Vec<u8>
[src]
impl Encode<MySql> for String
[src]
impl Encode<Postgres> for i16
[src]
impl Encode<Postgres> for i32
[src]
impl Encode<MySql> for i8
[src]
impl Encode<MySql> for bool
[src]
impl Encode<Postgres> for bool
[src]
impl Encode<Postgres> for Vec<u8>
[src]
Loading content...
Implementors
impl Encode<MySql> for DateTime<Utc>
[src]
impl Encode<MySql> for NaiveDate
[src]
impl Encode<MySql> for NaiveDateTime
[src]
impl Encode<MySql> for NaiveTime
[src]
impl Encode<Postgres> for NaiveDate
[src]
impl Encode<Postgres> for NaiveDateTime
[src]
impl Encode<Postgres> for NaiveTime
[src]
impl Encode<Postgres> for Uuid
[src]
impl<Tz> Encode<Postgres> for DateTime<Tz> where
Tz: TimeZone,
<Tz as TimeZone>::Offset: Copy,
[src]
Tz: TimeZone,
<Tz as TimeZone>::Offset: Copy,