pub struct SqlBackendCaps {
pub dialect_name: &'static str,
pub server_version: Option<String>,
pub supports_returning: bool,
pub supports_schemas: bool,
pub max_param_count: Option<usize>,
pub max_identifier_length: Option<usize>,
}Expand description
Backend capability summary exposed through SqlInspector.
The per-field values come from SqlConnection probes so concrete
backends can report their native ceilings without forcing callers to
branch on the connection type.
Fields§
§dialect_name: &'static str§server_version: Option<String>§supports_returning: bool§supports_schemas: bool§max_param_count: Option<usize>§max_identifier_length: Option<usize>Implementations§
Source§impl SqlBackendCaps
impl SqlBackendCaps
Sourcepub fn max_insert_rows(&self, column_count: usize) -> Option<usize>
pub fn max_insert_rows(&self, column_count: usize) -> Option<usize>
Maximum rows in one parameter-bound INSERT for column_count.
Returns None when the backend has no known parameter ceiling, or
when column_count is zero and therefore no parameter-derived row
ceiling can be computed.
Trait Implementations§
Source§impl Clone for SqlBackendCaps
impl Clone for SqlBackendCaps
Source§fn clone(&self) -> SqlBackendCaps
fn clone(&self) -> SqlBackendCaps
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 SqlBackendCaps
impl Debug for SqlBackendCaps
impl Eq for SqlBackendCaps
Source§impl PartialEq for SqlBackendCaps
impl PartialEq for SqlBackendCaps
impl StructuralPartialEq for SqlBackendCaps
Auto Trait Implementations§
impl Freeze for SqlBackendCaps
impl RefUnwindSafe for SqlBackendCaps
impl Send for SqlBackendCaps
impl Sync for SqlBackendCaps
impl Unpin for SqlBackendCaps
impl UnsafeUnpin for SqlBackendCaps
impl UnwindSafe for SqlBackendCaps
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.