Struct ydb_unofficial::sqlx::database::Ydb
source · pub struct Ydb;Available on crate feature
sqlx only.Trait Implementations§
source§impl Database for Ydb
impl Database for Ydb
§type Connection = YdbConnection
type Connection = YdbConnection
The concrete
Connection implementation for this database.§type TransactionManager = YdbTransactionManager
type TransactionManager = YdbTransactionManager
The concrete
TransactionManager implementation for this database.§type QueryResult = YdbQueryResult
type QueryResult = YdbQueryResult
The concrete
QueryResult implementation for this database.§type TypeInfo = YdbTypeInfo
type TypeInfo = YdbTypeInfo
The concrete
TypeInfo implementation for this database.§type Value = YdbValue
type Value = YdbValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was
received from the database.
source§const URL_SCHEMES: &'static [&'static str] = _
const URL_SCHEMES: &'static [&'static str] = _
The schemes for database URLs that should match this driver.
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, 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<'a> HasArguments<'a> for Ydb
impl<'a> HasArguments<'a> for Ydb
type Database = Ydb
§type Arguments = YdbArguments
type Arguments = YdbArguments
The concrete
Arguments implementation for this database.§type ArgumentBuffer = HashMap<String, TypedValue, RandomState>
type ArgumentBuffer = HashMap<String, TypedValue, RandomState>
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
impl Copy for Ydb
Auto Trait Implementations§
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> 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> 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