pub struct Do;Expand description
The Cloudflare Durable Object storage driver: the type sqlx code names in
Executor<'_, Database = Do>, sqlx::query_as::<Do, _> and so on.
Trait Implementations§
Source§impl Database for Do
impl Database for Do
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 = DoConnection
type Connection = DoConnection
The concrete
Connection implementation for this database.Source§type TransactionManager = DoTransactionManager
type TransactionManager = DoTransactionManager
The concrete
TransactionManager implementation for this database.Source§type QueryResult = QueryResult
type QueryResult = QueryResult
The concrete
QueryResult implementation for this database.Source§type Value = DoValue
type Value = DoValue
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> = DoValueRef<'r>
type ValueRef<'r> = DoValueRef<'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 = DoArguments
type Arguments = DoArguments
The concrete
Arguments implementation for this database.Source§type ArgumentBuffer = Vec<Value>
type ArgumentBuffer = Vec<Value>
The concrete type used as a buffer for arguments while encoding.
Source§type Statement = DoStatement
type Statement = DoStatement
The concrete
Statement implementation for this database.Source§impl Encode<'_, Do> for bool
impl Encode<'_, Do> for bool
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for i8
impl Encode<'_, Do> for i8
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for i16
impl Encode<'_, Do> for i16
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for i32
impl Encode<'_, Do> for i32
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for u8
impl Encode<'_, Do> for u8
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for u16
impl Encode<'_, Do> for u16
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for u32
impl Encode<'_, Do> for u32
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for i64
impl Encode<'_, Do> for i64
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for f64
impl Encode<'_, Do> for f64
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for f32
impl Encode<'_, Do> for f32
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for &str
impl Encode<'_, Do> for &str
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for String
impl Encode<'_, Do> for String
Source§fn encode(self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode(self, buf: &mut Vec<Value>) -> 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 Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Do> for &[u8]
impl Encode<'_, Do> for &[u8]
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for Vec<u8>
impl Encode<'_, Do> for Vec<u8>
Source§fn encode(self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode(self, buf: &mut Vec<Value>) -> 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 Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Do> for Box<str>
impl Encode<'_, Do> for Box<str>
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for Arc<str>
impl Encode<'_, Do> for Arc<str>
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for Cow<'_, str>
impl Encode<'_, Do> for Cow<'_, str>
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for Box<[u8]>
impl Encode<'_, Do> for Box<[u8]>
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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<'_, Do> for Arc<[u8]>
impl Encode<'_, Do> for Arc<[u8]>
Source§fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut Vec<Value>) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> 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, T> Encode<'q, Do> for Option<T>
impl<'q, T> Encode<'q, Do> for Option<T>
fn produces(&self) -> Option<<Do as Database>::TypeInfo>
Source§fn encode(
self,
buf: &mut <Do as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
fn encode( self, buf: &mut <Do as Database>::ArgumentBuffer, ) -> 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 <Do as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut <Do as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Auto Trait Implementations§
impl Freeze for Do
impl RefUnwindSafe for Do
impl Send for Do
impl Sync for Do
impl Unpin for Do
impl UnsafeUnpin for Do
impl UnwindSafe for Do
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