Struct sqlx_oldapi::Any 
source ยท pub struct Any;Expand description
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 url.
Trait Implementationsยง
sourceยงimpl Database for Any
 
impl Database for Any
ยงtype Connection = AnyConnection
 
type Connection = AnyConnection
The concrete 
Connection implementation for this database.ยงtype TransactionManager = AnyTransactionManager
 
type TransactionManager = AnyTransactionManager
The concrete 
TransactionManager implementation for this database.ยงtype QueryResult = AnyQueryResult
 
type QueryResult = AnyQueryResult
The concrete 
QueryResult implementation for this database.ยงtype TypeInfo = AnyTypeInfo
 
type TypeInfo = AnyTypeInfo
The concrete 
TypeInfo implementation for this database.sourceยงimpl<'q> Encode<'q, Any> for &'q strwhere
    &'q str: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for &'q strwhere &'q str: AnyEncode<'q>,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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, Any> for Option<T>where
    T: AnyEncode<'q> + 'q,
 
impl<'q, T> Encode<'q, Any> for Option<T>where T: AnyEncode<'q> + 'q,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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, Any> for Stringwhere
    String: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for Stringwhere String: AnyEncode<'q>,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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, Any> for boolwhere
    bool: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for boolwhere bool: AnyEncode<'q>,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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, Any> for f32where
    f32: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for f32where f32: AnyEncode<'q>,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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, Any> for f64where
    f64: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for f64where f64: AnyEncode<'q>,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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, Any> for i16where
    i16: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for i16where i16: AnyEncode<'q>,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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, Any> for i32where
    i32: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for i32where i32: AnyEncode<'q>,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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, Any> for i64where
    i64: AnyEncode<'q>,
 
impl<'q> Encode<'q, Any> for i64where i64: AnyEncode<'q>,
sourceยงfn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
 
fn encode_by_ref(&self, buf: &mut AnyArgumentBuffer<'q>) -> IsNull
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere 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> HasArguments<'q> for Any
 
impl<'q> HasArguments<'q> for Any
type Database = Any
ยงtype Arguments = AnyArguments<'q>
 
type Arguments = AnyArguments<'q>
The concrete 
Arguments implementation for this database.ยงtype ArgumentBuffer = AnyArgumentBuffer<'q>
 
type ArgumentBuffer = AnyArgumentBuffer<'q>
The concrete type used as a buffer for arguments while encoding.
sourceยงimpl<'q> HasStatement<'q> for Any
 
impl<'q> HasStatement<'q> for Any
sourceยงimpl<'r> HasValueRef<'r> for Any
 
impl<'r> HasValueRef<'r> for Any
sourceยงimpl MigrateDatabase for Any
 
impl MigrateDatabase for Any
fn create_database( url: &str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_, Global>>
fn database_exists( url: &str ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + '_, Global>>
fn drop_database( url: &str ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_, Global>>
sourceยงimpl Type<Any> for String
 
impl Type<Any> for String
sourceยงfn type_info() -> AnyTypeInfo
 
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
 
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Any> for bool
 
impl Type<Any> for bool
sourceยงfn type_info() -> AnyTypeInfo
 
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
 
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Any> for f32
 
impl Type<Any> for f32
sourceยงfn type_info() -> AnyTypeInfo
 
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
 
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Any> for f64
 
impl Type<Any> for f64
sourceยงfn type_info() -> AnyTypeInfo
 
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
 
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Any> for i16
 
impl Type<Any> for i16
sourceยงfn type_info() -> AnyTypeInfo
 
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
 
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Any> for i32
 
impl Type<Any> for i32
sourceยงfn type_info() -> AnyTypeInfo
 
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
 
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Any> for i64
 
impl Type<Any> for i64
sourceยงfn type_info() -> AnyTypeInfo
 
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
 
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceยงimpl Type<Any> for str
 
impl Type<Any> for str
sourceยงfn type_info() -> AnyTypeInfo
 
fn type_info() -> AnyTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &AnyTypeInfo) -> bool
 
fn compatible(ty: &AnyTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl HasStatementCache for Any
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ยง
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