pub struct Ydb;
Available on crate feature
sqlx
only.Trait Implementations§
Source§impl Database for Ydb
impl Database for Ydb
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 = YdbConnection
type Connection = YdbConnection
The concrete
Connection
implementation for this database.Source§type TransactionManager = YdbTransactionManager
type TransactionManager = YdbTransactionManager
The concrete
TransactionManager
implementation for this database.Source§type QueryResult = YdbQueryResult
type QueryResult = YdbQueryResult
The concrete
QueryResult
implementation for this database.Source§type TypeInfo = YdbTypeInfo
type TypeInfo = YdbTypeInfo
The concrete
TypeInfo
implementation for this database.Source§impl Decode<'_, Ydb> for JsonDocument
impl Decode<'_, Ydb> for JsonDocument
Source§impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Date)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Date)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, Datetime)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Datetime)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, Json)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Json)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, JsonDocument)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, JsonDocument)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, String)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, String)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, Timestamp)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Timestamp)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, Vec<u8>)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, Vec<u8>)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, bool)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, bool)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, f32)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, f32)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, f64)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, f64)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, i16)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, i16)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, i32)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, i32)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, i64)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, i64)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, i8)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, i8)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, u16)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, u16)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, u32)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, u32)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, u64)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, u64)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, S: ToString + Clone> Encode<'q, Ydb> for (S, u8)
impl<'q, S: ToString + Clone> Encode<'q, Ydb> for (S, u8)
Source§fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut YdbArgumentBuffer) -> 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, Ydb> for Migration
Available on crate feature migrate
only.
impl<'q> Encode<'q, Ydb> for Migration
Available on crate feature
migrate
only.Source§fn encode_by_ref(
&self,
buf: &mut <Ydb as HasArguments<'q>>::ArgumentBuffer,
) -> IsNull
fn encode_by_ref( &self, buf: &mut <Ydb as HasArguments<'q>>::ArgumentBuffer, ) -> 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<'a> HasArguments<'a> for Ydb
impl<'a> HasArguments<'a> for Ydb
type Database = Ydb
Source§type Arguments = YdbArguments
type Arguments = YdbArguments
The concrete
Arguments
implementation for this database.Source§type ArgumentBuffer = HashMap<String, TypedValue>
type ArgumentBuffer = HashMap<String, TypedValue>
The concrete type used as a buffer for arguments while encoding.
Source§impl<'a> HasStatement<'a> for Ydb
impl<'a> HasStatement<'a> for Ydb
Source§impl<'a> HasValueRef<'a> for Ydb
impl<'a> HasValueRef<'a> for Ydb
Source§impl IntoArguments<'_, Ydb> for YdbArguments
impl IntoArguments<'_, Ydb> for YdbArguments
fn into_arguments(self) -> YdbArguments
Source§impl<'a> IntoArguments<'a, Ydb> for &YdbArguments
impl<'a> IntoArguments<'a, Ydb> for &YdbArguments
fn into_arguments(self) -> YdbArguments
Source§impl Type<Ydb> for JsonDocument
impl Type<Ydb> for JsonDocument
impl Copy for Ydb
Auto Trait Implementations§
impl Freeze for Ydb
impl RefUnwindSafe for Ydb
impl Send for Ydb
impl Sync for Ydb
impl Unpin for Ydb
impl UnwindSafe for Ydb
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request