pub enum QueryCapacity {
SimpleSelect,
SelectWithFilters(usize),
Insert(usize),
Update(usize),
Delete,
Custom(usize),
}Expand description
Capacity hints for different query types.
Variants§
SimpleSelect
Simple SELECT query (e.g., SELECT * FROM users WHERE id = $1)
SelectWithFilters(usize)
SELECT with multiple conditions
Insert(usize)
INSERT with N columns
Update(usize)
UPDATE with N columns
Delete
DELETE query
Custom(usize)
Custom capacity
Implementations§
Trait Implementations§
Source§impl Clone for QueryCapacity
impl Clone for QueryCapacity
Source§fn clone(&self) -> QueryCapacity
fn clone(&self) -> QueryCapacity
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryCapacity
impl Debug for QueryCapacity
impl Copy for QueryCapacity
Auto Trait Implementations§
impl Freeze for QueryCapacity
impl RefUnwindSafe for QueryCapacity
impl Send for QueryCapacity
impl Sync for QueryCapacity
impl Unpin for QueryCapacity
impl UnwindSafe for QueryCapacity
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