pub struct Spg;Expand description
sqlx 0.8 driver for spg-embedded.
Used as the <DB> type parameter on every sqlx-core generic
API — e.g. sqlx::query::<Spg> is what
sqlx::query("...").execute(&spg_pool) collapses to.
Single-database — the adapter wraps one in-process
AsyncDatabase per SpgPool, with the
Mutex inside AsyncDatabase providing the serialised
engine-write invariant the spg-engine layer requires.
Trait Implementations§
Source§impl Database for Spg
impl Database for Spg
Source§const URL_SCHEMES: &'static [&'static str]
const URL_SCHEMES: &'static [&'static str]
The schemes for database URLs that should match this driver.
Source§type Connection = SpgConnection
type Connection = SpgConnection
The concrete
Connection implementation for this database.Source§type TransactionManager = SpgTransactionManager
type TransactionManager = SpgTransactionManager
The concrete
TransactionManager implementation for this database.Source§type QueryResult = SpgQueryResult
type QueryResult = SpgQueryResult
The concrete
QueryResult implementation for this database.Source§type TypeInfo = SpgTypeInfo
type TypeInfo = SpgTypeInfo
The concrete
TypeInfo implementation for this database.Source§type Value = SpgValue
type Value = SpgValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was
received from the database.
Source§type ValueRef<'r> = SpgValueRef<'r>
type ValueRef<'r> = SpgValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been
received from the database.
Source§type Arguments<'q> = SpgArguments<'q>
type Arguments<'q> = SpgArguments<'q>
The concrete
Arguments implementation for this database.Source§type ArgumentBuffer<'q> = Vec<SpgArgumentValue<'q>>
type ArgumentBuffer<'q> = Vec<SpgArgumentValue<'q>>
The concrete type used as a buffer for arguments while encoding.
Source§type Statement<'q> = SpgStatement<'q>
type Statement<'q> = SpgStatement<'q>
The concrete
Statement implementation for this database.Source§impl<'r> Decode<'r, Spg> for Vec<i32>
impl<'r> Decode<'r, Spg> for Vec<i32>
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for Vec<i64>
impl<'r> Decode<'r, Spg> for Vec<i64>
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for Vec<String>
impl<'r> Decode<'r, Spg> for Vec<String>
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for bool
impl<'r> Decode<'r, Spg> for bool
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for Vec<u8>
impl<'r> Decode<'r, Spg> for Vec<u8>
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for DateTime<Utc>
impl<'r> Decode<'r, Spg> for DateTime<Utc>
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for NaiveDateTime
impl<'r> Decode<'r, Spg> for NaiveDateTime
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for NaiveDate
impl<'r> Decode<'r, Spg> for NaiveDate
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for BigDecimal
impl<'r> Decode<'r, Spg> for BigDecimal
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for f64
impl<'r> Decode<'r, Spg> for f64
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for f32
impl<'r> Decode<'r, Spg> for f32
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for i32
impl<'r> Decode<'r, Spg> for i32
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for i64
impl<'r> Decode<'r, Spg> for i64
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for i16
impl<'r> Decode<'r, Spg> for i16
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for Value
impl<'r> Decode<'r, Spg> for Value
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for String
impl<'r> Decode<'r, Spg> for String
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for &'r str
impl<'r> Decode<'r, Spg> for &'r str
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for Uuid
impl<'r> Decode<'r, Spg> for Uuid
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Spg> for Vec<f32>
impl<'r> Decode<'r, Spg> for Vec<f32>
Source§fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: SpgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'q> Encode<'q, Spg> for Vec<i32>
impl<'q> Encode<'q, Spg> for Vec<i32>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for &'q [i32]
impl<'q> Encode<'q, Spg> for &'q [i32]
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for Vec<i64>
impl<'q> Encode<'q, Spg> for Vec<i64>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for &'q [i64]
impl<'q> Encode<'q, Spg> for &'q [i64]
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for Vec<String>
impl<'q> Encode<'q, Spg> for Vec<String>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for &'q [String]
impl<'q> Encode<'q, Spg> for &'q [String]
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for Vec<&str>
impl<'q> Encode<'q, Spg> for Vec<&str>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for &'q [&str]
impl<'q> Encode<'q, Spg> for &'q [&str]
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for bool
impl<'q> Encode<'q, Spg> for bool
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for &'q [u8]
impl<'q> Encode<'q, Spg> for &'q [u8]
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for Vec<u8>
impl<'q> Encode<'q, Spg> for Vec<u8>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for DateTime<Utc>
impl<'q> Encode<'q, Spg> for DateTime<Utc>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for NaiveDateTime
impl<'q> Encode<'q, Spg> for NaiveDateTime
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for NaiveDate
impl<'q> Encode<'q, Spg> for NaiveDate
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for BigDecimal
impl<'q> Encode<'q, Spg> for BigDecimal
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for f64
impl<'q> Encode<'q, Spg> for f64
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for f32
impl<'q> Encode<'q, Spg> for f32
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for i32
impl<'q> Encode<'q, Spg> for i32
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for i64
impl<'q> Encode<'q, Spg> for i64
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for i16
impl<'q> Encode<'q, Spg> for i16
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for Value
impl<'q> Encode<'q, Spg> for Value
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for &'q str
impl<'q> Encode<'q, Spg> for &'q str
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for String
impl<'q> Encode<'q, Spg> for String
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for Uuid
impl<'q> Encode<'q, Spg> for Uuid
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Spg> for Vec<f32>
impl<'q> Encode<'q, Spg> for Vec<f32>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<SpgArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<SpgArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q, T> Encode<'q, Spg> for Option<T>
impl<'q, T> Encode<'q, Spg> for Option<T>
fn produces(&self) -> Option<<Spg as Database>::TypeInfo>
Source§fn encode(
self,
buf: &mut <Spg as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, BoxDynError>
fn encode( self, buf: &mut <Spg as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, BoxDynError>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
buf: &mut <Spg as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <Spg as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
impl HasStatementCache for Spg
Source§impl Type<Spg> for [i32]
impl Type<Spg> for [i32]
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(_ty: &SpgTypeInfo) -> bool
fn compatible(_ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for Vec<i32>
impl Type<Spg> for Vec<i32>
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(_ty: &SpgTypeInfo) -> bool
fn compatible(_ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for [i64]
impl Type<Spg> for [i64]
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(_ty: &SpgTypeInfo) -> bool
fn compatible(_ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for Vec<i64>
impl Type<Spg> for Vec<i64>
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(_ty: &SpgTypeInfo) -> bool
fn compatible(_ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for [String]
impl Type<Spg> for [String]
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(_ty: &SpgTypeInfo) -> bool
fn compatible(_ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for Vec<String>
impl Type<Spg> for Vec<String>
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(_ty: &SpgTypeInfo) -> bool
fn compatible(_ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for [&str]
impl Type<Spg> for [&str]
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(_ty: &SpgTypeInfo) -> bool
fn compatible(_ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for Vec<&str>
impl Type<Spg> for Vec<&str>
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(_ty: &SpgTypeInfo) -> bool
fn compatible(_ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for bool
impl Type<Spg> for bool
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for [u8]
impl Type<Spg> for [u8]
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for Vec<u8>
impl Type<Spg> for Vec<u8>
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for DateTime<Utc>
impl Type<Spg> for DateTime<Utc>
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for NaiveDateTime
impl Type<Spg> for NaiveDateTime
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for NaiveDate
impl Type<Spg> for NaiveDate
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for BigDecimal
impl Type<Spg> for BigDecimal
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for f64
impl Type<Spg> for f64
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for f32
impl Type<Spg> for f32
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for i32
impl Type<Spg> for i32
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for i64
impl Type<Spg> for i64
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for i16
impl Type<Spg> for i16
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for Value
impl Type<Spg> for Value
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for str
impl Type<Spg> for str
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Spg> for String
impl Type<Spg> for String
Source§fn type_info() -> SpgTypeInfo
fn type_info() -> SpgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &SpgTypeInfo) -> bool
fn compatible(ty: &SpgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Auto Trait Implementations§
impl Freeze for Spg
impl RefUnwindSafe for Spg
impl Send for Spg
impl Sync for Spg
impl Unpin for Spg
impl UnsafeUnpin for Spg
impl UnwindSafe for Spg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more