pub struct Xugu;Expand description
Xugu database driver.
Trait Implementations§
Source§impl Database for Xugu
impl Database for Xugu
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 = XuguConnection
type Connection = XuguConnection
The concrete
Connection implementation for this database.Source§type TransactionManager = XuguTransactionManager
type TransactionManager = XuguTransactionManager
The concrete
TransactionManager implementation for this database.Source§type QueryResult = XuguQueryResult
type QueryResult = XuguQueryResult
The concrete
QueryResult implementation for this database.Source§type Column = XuguColumn
type Column = XuguColumn
The concrete
Column implementation for this database.Source§type TypeInfo = XuguTypeInfo
type TypeInfo = XuguTypeInfo
The concrete
TypeInfo implementation for this database.Source§type Value = XuguValue
type Value = XuguValue
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> = XuguValueRef<'r>
type ValueRef<'r> = XuguValueRef<'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> = XuguArguments<'q>
type Arguments<'q> = XuguArguments<'q>
The concrete
Arguments implementation for this database.Source§type ArgumentBuffer<'q> = Vec<XuguArgumentValue<'q>>
type ArgumentBuffer<'q> = Vec<XuguArgumentValue<'q>>
The concrete type used as a buffer for arguments while encoding.
Source§type Statement<'q> = XuguStatement<'q>
type Statement<'q> = XuguStatement<'q>
The concrete
Statement implementation for this database.Source§impl Decode<'_, Xugu> for String
impl Decode<'_, Xugu> for String
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for Vec<u8>
impl Decode<'_, Xugu> for Vec<u8>
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for bool
impl Decode<'_, Xugu> for bool
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for f32
impl Decode<'_, Xugu> for f32
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for f64
impl Decode<'_, Xugu> for f64
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for i16
impl Decode<'_, Xugu> for i16
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for i32
impl Decode<'_, Xugu> for i32
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for i64
impl Decode<'_, Xugu> for i64
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for i8
impl Decode<'_, Xugu> for i8
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for u16
impl Decode<'_, Xugu> for u16
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for u32
impl Decode<'_, Xugu> for u32
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for u64
impl Decode<'_, Xugu> for u64
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Xugu> for u8
impl Decode<'_, Xugu> for u8
Source§fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'q> Decode<'q, Xugu> for &'q [u8]
impl<'q> Decode<'q, Xugu> for &'q [u8]
Source§fn decode(value: XuguValueRef<'q>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'q>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'q> Decode<'q, Xugu> for &'q str
impl<'q> Decode<'q, Xugu> for &'q str
Source§fn decode(value: XuguValueRef<'q>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'q>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for Box<[u8]>
impl<'r> Decode<'r, Xugu> for Box<[u8]>
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for Box<str>
impl<'r> Decode<'r, Xugu> for Box<str>
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for Cow<'r, str>
impl<'r> Decode<'r, Xugu> for Cow<'r, str>
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for Duration
std::time::Duration 表示的持续时间为非负数,解码时取绝对值
impl<'r> Decode<'r, Xugu> for Duration
std::time::Duration 表示的持续时间为非负数,解码时取绝对值
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T> Decode<'r, Xugu> for Text<T>
impl<'r, T> Decode<'r, Xugu> for Text<T>
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for XgBox
impl<'r> Decode<'r, Xugu> for XgBox
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for XgCircle
impl<'r> Decode<'r, Xugu> for XgCircle
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for XgLSeg
impl<'r> Decode<'r, Xugu> for XgLSeg
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for XgLine
impl<'r> Decode<'r, Xugu> for XgLine
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for XgPath
impl<'r> Decode<'r, Xugu> for XgPath
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for XgPoint
impl<'r> Decode<'r, Xugu> for XgPoint
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Xugu> for XgPolygon
impl<'r> Decode<'r, Xugu> for XgPolygon
Source§fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: XuguValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Encode<'_, Xugu> for Box<[u8]>
impl Encode<'_, Xugu> for Box<[u8]>
Source§fn encode(
self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode( self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for Box<str>
impl Encode<'_, Xugu> for Box<str>
Source§fn encode(
self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode( self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for Duration
impl Encode<'_, Xugu> for Duration
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for String
impl Encode<'_, Xugu> for String
Source§fn encode(
self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode( self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for Vec<u8>
impl Encode<'_, Xugu> for Vec<u8>
Source§fn encode(
self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode( self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for XgBox
impl Encode<'_, Xugu> for XgBox
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<XuguTypeInfo>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for XgCircle
impl Encode<'_, Xugu> for XgCircle
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<XuguTypeInfo>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for XgLSeg
impl Encode<'_, Xugu> for XgLSeg
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<XuguTypeInfo>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for XgLine
impl Encode<'_, Xugu> for XgLine
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<XuguTypeInfo>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for XgPath
impl Encode<'_, Xugu> for XgPath
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<XuguTypeInfo>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for XgPoint
impl Encode<'_, Xugu> for XgPoint
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<XuguTypeInfo>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for XgPolygon
impl Encode<'_, Xugu> for XgPolygon
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<XuguTypeInfo>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Xugu> for bool
impl Encode<'_, Xugu> for bool
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for f32
impl Encode<'_, Xugu> for f32
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for f64
impl Encode<'_, Xugu> for f64
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for i16
impl Encode<'_, Xugu> for i16
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for i32
impl Encode<'_, Xugu> for i32
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for i64
impl Encode<'_, Xugu> for i64
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for i8
impl Encode<'_, Xugu> for i8
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for u16
impl Encode<'_, Xugu> for u16
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for u32
impl Encode<'_, Xugu> for u32
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for u64
impl Encode<'_, Xugu> for u64
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Encode<'_, Xugu> for u8
impl Encode<'_, Xugu> for u8
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'_>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'_>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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, Xugu> for &'q [u8]
impl<'q> Encode<'q, Xugu> for &'q [u8]
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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, Xugu> for &'q str
impl<'q> Encode<'q, Xugu> for &'q str
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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, Xugu> for Cow<'q, str>
impl<'q> Encode<'q, Xugu> for Cow<'q, str>
Source§fn encode(
self,
args: &mut Vec<XuguArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode( self, args: &mut Vec<XuguArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q, T> Encode<'q, Xugu> for Option<T>
impl<'q, T> Encode<'q, Xugu> for Option<T>
fn produces(&self) -> Option<<Xugu as Database>::TypeInfo>
Source§fn encode(
self,
buf: &mut <Xugu as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, BoxDynError>
fn encode( self, buf: &mut <Xugu 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 <Xugu as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <Xugu as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Source§impl<'q, T> Encode<'q, Xugu> for Text<T>where
T: Display,
impl<'q, T> Encode<'q, Xugu> for Text<T>where
T: Display,
Source§fn encode_by_ref(
&self,
args: &mut Vec<XuguArgumentValue<'q>>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, args: &mut Vec<XuguArgumentValue<'q>>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>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 Type<Xugu> for [u8]
impl Type<Xugu> for [u8]
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for Box<[u8]>
impl Type<Xugu> for Box<[u8]>
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for Box<str>
impl Type<Xugu> for Box<str>
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for Cow<'_, str>
impl Type<Xugu> for Cow<'_, str>
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for Duration
impl Type<Xugu> for Duration
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for String
impl Type<Xugu> for String
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl<T> Type<Xugu> for Text<T>
impl<T> Type<Xugu> for Text<T>
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for Vec<u8>
impl Type<Xugu> for Vec<u8>
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for XgBox
impl Type<Xugu> for XgBox
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for XgCircle
impl Type<Xugu> for XgCircle
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for XgLSeg
impl Type<Xugu> for XgLSeg
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for XgLine
impl Type<Xugu> for XgLine
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for XgPath
impl Type<Xugu> for XgPath
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for XgPoint
impl Type<Xugu> for XgPoint
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for XgPolygon
impl Type<Xugu> for XgPolygon
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for bool
impl Type<Xugu> for bool
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for f32
impl Type<Xugu> for f32
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for f64
impl Type<Xugu> for f64
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for i16
impl Type<Xugu> for i16
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for i32
impl Type<Xugu> for i32
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for i64
impl Type<Xugu> for i64
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for i8
impl Type<Xugu> for i8
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for str
impl Type<Xugu> for str
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for u16
impl Type<Xugu> for u16
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for u32
impl Type<Xugu> for u32
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for u64
impl Type<Xugu> for u64
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Xugu> for u8
impl Type<Xugu> for u8
Source§fn type_info() -> XuguTypeInfo
fn type_info() -> XuguTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &XuguTypeInfo) -> bool
fn compatible(ty: &XuguTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl HasStatementCache for Xugu
Auto Trait Implementations§
impl Freeze for Xugu
impl RefUnwindSafe for Xugu
impl Send for Xugu
impl Sync for Xugu
impl Unpin for Xugu
impl UnwindSafe for Xugu
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