pub struct DistributedDbCompatReport {
pub db_type: DistributedDbType,
pub sql_compat_results: Vec<SqlCompatResult>,
pub distributed_tx_behavior: Vec<TxBehaviorResult>,
pub benchmark_vs_pg: Vec<BenchmarkComparison>,
}Expand description
分布式 DB 兼容性报告
Fields§
§db_type: DistributedDbType数据库类型
sql_compat_results: Vec<SqlCompatResult>SQL 兼容性测试结果列表
distributed_tx_behavior: Vec<TxBehaviorResult>分布式事务行为结果列表
benchmark_vs_pg: Vec<BenchmarkComparison>基准对比
Implementations§
Source§impl DistributedDbCompatReport
impl DistributedDbCompatReport
Sourcepub fn new(db_type: DistributedDbType) -> Self
pub fn new(db_type: DistributedDbType) -> Self
创建新的兼容性报告
Sourcepub fn add_sql_compat(&mut self, result: SqlCompatResult)
pub fn add_sql_compat(&mut self, result: SqlCompatResult)
添加 SQL 兼容性结果
Sourcepub fn add_tx_behavior(&mut self, result: TxBehaviorResult)
pub fn add_tx_behavior(&mut self, result: TxBehaviorResult)
添加事务行为结果
Sourcepub fn add_benchmark(&mut self, comparison: BenchmarkComparison)
pub fn add_benchmark(&mut self, comparison: BenchmarkComparison)
添加基准对比
Sourcepub fn overall_sql_compat_rate(&self) -> f64
pub fn overall_sql_compat_rate(&self) -> f64
计算总体 SQL 兼容率
Trait Implementations§
Source§impl Clone for DistributedDbCompatReport
impl Clone for DistributedDbCompatReport
Source§fn clone(&self) -> DistributedDbCompatReport
fn clone(&self) -> DistributedDbCompatReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DistributedDbCompatReport
impl Debug for DistributedDbCompatReport
Source§impl<'de> Deserialize<'de> for DistributedDbCompatReport
impl<'de> Deserialize<'de> for DistributedDbCompatReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DistributedDbCompatReport
impl RefUnwindSafe for DistributedDbCompatReport
impl Send for DistributedDbCompatReport
impl Sync for DistributedDbCompatReport
impl Unpin for DistributedDbCompatReport
impl UnsafeUnpin for DistributedDbCompatReport
impl UnwindSafe for DistributedDbCompatReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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