[−][src]Struct sqlx::Any
Opaque database driver. Capable of being used in place of any SQLx database driver. The actual driver used will be selected at runtime, from the connection uri.
Trait Implementations
impl Database for Any
[src]
type Connection = AnyConnection
The concrete Connection
implementation for this database.
type TransactionManager = AnyTransactionManager
The concrete TransactionManager
implementation for this database.
type Row = AnyRow
The concrete Row
implementation for this database.
type Done = AnyDone
The concrete Done
implementation for this database.
type Column = AnyColumn
The concrete Column
implementation for this database.
type TypeInfo = AnyTypeInfo
The concrete TypeInfo
implementation for this database.
type Value = AnyValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was received from the database. Read more
impl Debug for Any
[src]
impl<'r> Decode<'r, Any> for &'r str where
&'r str: AnyDecode<'r>,
[src]
&'r str: AnyDecode<'r>,
impl<'r> Decode<'r, Any> for bool where
bool: AnyDecode<'r>,
[src]
bool: AnyDecode<'r>,
impl<'r> Decode<'r, Any> for f64 where
f64: AnyDecode<'r>,
[src]
f64: AnyDecode<'r>,
impl<'r> Decode<'r, Any> for i64 where
i64: AnyDecode<'r>,
[src]
i64: AnyDecode<'r>,
impl<'r> Decode<'r, Any> for i32 where
i32: AnyDecode<'r>,
[src]
i32: AnyDecode<'r>,
impl<'r> Decode<'r, Any> for f32 where
f32: AnyDecode<'r>,
[src]
f32: AnyDecode<'r>,
impl<'r> Decode<'r, Any> for String where
String: AnyDecode<'r>,
[src]
String: AnyDecode<'r>,
impl<'q> Encode<'q, Any> for &'q str where
&'q str: AnyEncode<'q>,
[src]
&'q str: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Any> for i64 where
i64: AnyEncode<'q>,
[src]
i64: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Any> for i32 where
i32: AnyEncode<'q>,
[src]
i32: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q, T> Encode<'q, Any> for Option<T> where
T: Encode<'q, Any> + Type<Any> + 'q,
[src]
T: Encode<'q, Any> + Type<Any> + 'q,
fn produces(&self) -> Option<<Any as Database>::TypeInfo>
[src]
fn encode(self, buf: &mut <Any as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn encode_by_ref(
&self,
buf: &mut <Any as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
[src]
&self,
buf: &mut <Any as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Any> for f64 where
f64: AnyEncode<'q>,
[src]
f64: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Any> for bool where
bool: AnyEncode<'q>,
[src]
bool: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Any> for f32 where
f32: AnyEncode<'q>,
[src]
f32: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> Encode<'q, Any> for String where
String: AnyEncode<'q>,
[src]
String: AnyEncode<'q>,
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
fn size_hint(&self) -> usize
[src]
impl<'q> HasArguments<'q> for Any
[src]
type Database = Any
type Arguments = AnyArguments<'q>
The concrete Arguments
implementation for this database.
type ArgumentBuffer = AnyArgumentBuffer<'q>
The concrete type used as a buffer for arguments while encoding.
impl<'q> HasStatement<'q> for Any
[src]
type Database = Any
type Statement = AnyStatement<'q>
The concrete Statement
implementation for this database.
impl HasStatementCache for Any
[src]
impl<'r> HasValueRef<'r> for Any
[src]
type Database = Any
type ValueRef = AnyValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been received from the database. Read more
impl<O, F> MapRow<Any> for F where
F: FnMut(AnyRow) -> O,
O: Unpin,
[src]
F: FnMut(AnyRow) -> O,
O: Unpin,
impl MigrateDatabase for Any
[src]
fn create_database(
uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
[src]
uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
fn database_exists(
uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send>>
[src]
uri: &str
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send>>
fn drop_database(
uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
[src]
uri: &str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>
impl<O, F> TryMapRow<Any> for F where
F: FnMut(AnyRow) -> Result<O, Error>,
O: Unpin,
[src]
F: FnMut(AnyRow) -> Result<O, Error>,
O: Unpin,
impl Type<Any> for f64 where
f64: AnyType,
[src]
f64: AnyType,
fn type_info() -> AnyTypeInfo
[src]
fn compatible(ty: &AnyTypeInfo) -> bool
[src]
impl Type<Any> for bool where
bool: AnyType,
[src]
bool: AnyType,
fn type_info() -> AnyTypeInfo
[src]
fn compatible(ty: &AnyTypeInfo) -> bool
[src]
impl Type<Any> for i64 where
i64: AnyType,
[src]
i64: AnyType,
fn type_info() -> AnyTypeInfo
[src]
fn compatible(ty: &AnyTypeInfo) -> bool
[src]
impl Type<Any> for i32 where
i32: AnyType,
[src]
i32: AnyType,
fn type_info() -> AnyTypeInfo
[src]
fn compatible(ty: &AnyTypeInfo) -> bool
[src]
impl Type<Any> for str where
str: AnyType,
[src]
str: AnyType,
fn type_info() -> AnyTypeInfo
[src]
fn compatible(ty: &AnyTypeInfo) -> bool
[src]
impl Type<Any> for String where
String: AnyType,
[src]
String: AnyType,
fn type_info() -> AnyTypeInfo
[src]
fn compatible(ty: &AnyTypeInfo) -> bool
[src]
impl Type<Any> for f32 where
f32: AnyType,
[src]
f32: AnyType,
fn type_info() -> AnyTypeInfo
[src]
fn compatible(ty: &AnyTypeInfo) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Any
impl Send for Any
impl Sync for Any
impl Unpin for Any
impl UnwindSafe for Any
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,