pub struct MySqlStore { /* private fields */ }
Expand description
A pooled Store
for the MySQL database.
Trait Implementations§
Source§impl Clone for MySqlStore
impl Clone for MySqlStore
Source§fn clone(&self) -> MySqlStore
fn clone(&self) -> MySqlStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MySqlStore
impl Debug for MySqlStore
Source§impl Read<MySqlStore> for String
impl Read<MySqlStore> for String
Source§impl Read<MySqlStore> for bool
impl Read<MySqlStore> for bool
Source§impl Read<MySqlStore> for f32
impl Read<MySqlStore> for f32
Source§impl Read<MySqlStore> for f64
impl Read<MySqlStore> for f64
Source§impl Read<MySqlStore> for i16
impl Read<MySqlStore> for i16
Source§impl Read<MySqlStore> for i32
impl Read<MySqlStore> for i32
Source§impl Read<MySqlStore> for i64
impl Read<MySqlStore> for i64
Source§impl Read<MySqlStore> for i8
impl Read<MySqlStore> for i8
Source§impl Read<MySqlStore> for u16
impl Read<MySqlStore> for u16
Source§impl Read<MySqlStore> for u32
impl Read<MySqlStore> for u32
Source§impl Read<MySqlStore> for u64
impl Read<MySqlStore> for u64
Source§impl Read<MySqlStore> for u8
impl Read<MySqlStore> for u8
Source§impl Store for MySqlStore
impl Store for MySqlStore
Source§type DataStore = MySqlStore
type DataStore = MySqlStore
The inner store used by this store. This is mainly useful for wrapping stores while
keeping the same requirements for the types. For most stores this should be
Self
.Source§fn connect<'life0, 'async_trait>(
uri: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
uri: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connects to the store using the given uri. Read more
Source§fn create<'life0, 'async_trait, T, D>(
&'life0 self,
descriptor: D,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
fn create<'life0, 'async_trait, T, D>( &'life0 self, descriptor: D, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
Source§fn delete<'life0, 'async_trait, T, D, Q>(
&'life0 self,
descriptor: D,
query: Q,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
fn delete<'life0, 'async_trait, T, D, Q>( &'life0 self, descriptor: D, query: Q, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
Source§fn get<'life0, 'async_trait, T, D, Q>(
&'life0 self,
descriptor: D,
query: Q,
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + Send + 'async_trait>>
fn get<'life0, 'async_trait, T, D, Q>( &'life0 self, descriptor: D, query: Q, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + Send + 'async_trait>>
Source§fn get_all<'life0, 'async_trait, T, D>(
&'life0 self,
descriptor: D,
) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + Send + 'async_trait>>
fn get_all<'life0, 'async_trait, T, D>( &'life0 self, descriptor: D, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Self::Error>> + Send + 'async_trait>>
Source§fn get_one<'life0, 'async_trait, T, D, Q>(
&'life0 self,
descriptor: D,
query: Q,
) -> Pin<Box<dyn Future<Output = Result<Option<T>, Self::Error>> + Send + 'async_trait>>
fn get_one<'life0, 'async_trait, T, D, Q>( &'life0 self, descriptor: D, query: Q, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Self::Error>> + Send + 'async_trait>>
Returns an item
T
matching the query Q
from store. If no matching item is found None
is returned. Read moreSource§impl Write<MySqlStore> for [u8]
impl Write<MySqlStore> for [u8]
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for String
impl Write<MySqlStore> for String
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for Vec<u8>
impl Write<MySqlStore> for Vec<u8>
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for bool
impl Write<MySqlStore> for bool
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for f32
impl Write<MySqlStore> for f32
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for f64
impl Write<MySqlStore> for f64
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for i16
impl Write<MySqlStore> for i16
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for i32
impl Write<MySqlStore> for i32
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for i64
impl Write<MySqlStore> for i64
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for i8
impl Write<MySqlStore> for i8
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for str
impl Write<MySqlStore> for str
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for u16
impl Write<MySqlStore> for u16
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for u32
impl Write<MySqlStore> for u32
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for u64
impl Write<MySqlStore> for u64
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Source§impl Write<MySqlStore> for u8
impl Write<MySqlStore> for u8
fn write<W>(&self, writer: &mut W) -> Result<(), W::Error>where
W: Writer<MySqlStore>,
fn write_type<W>(writer: &mut W) -> Result<(), W::Error>where
W: TypeWriter<MySqlStore>,
Auto Trait Implementations§
impl Freeze for MySqlStore
impl !RefUnwindSafe for MySqlStore
impl Send for MySqlStore
impl Sync for MySqlStore
impl Unpin for MySqlStore
impl !UnwindSafe for MySqlStore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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