[−][src]Trait sqlx_core::encode::Encode
Encode a single value to be sent to the database.
Required methods
fn encode(&self, buf: &mut Vec<u8>)
Writes the value of self
into buf
in the expected format for the database.
Provided methods
Loading content...Implementations on Foreign Types
impl<'_, T: ?Sized, DB> Encode<DB> for &'_ T where
DB: Database + HasSqlType<T>,
T: Encode<DB>,
[src]
DB: Database + HasSqlType<T>,
T: Encode<DB>,
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl<T, DB> Encode<DB> for Option<T> where
DB: Database + HasSqlType<T>,
T: Encode<DB>,
[src]
DB: Database + HasSqlType<T>,
T: Encode<DB>,