pub enum ReadSqlMode {
Membership,
ScalarWhenUnique,
}Expand description
SQL spelling for membership predicates. Both modes preserve the same read and exact-count semantics; their PostgreSQL execution plans can differ.
Variants§
Membership
Always use IN (SELECT ...), retaining the original renderer behavior.
ScalarWhenUnique
Use scalar = (SELECT ...) when all primary-key columns are fixed.
Other lookups retain IN. This is workload-dependent, not always faster.
Trait Implementations§
Source§impl Clone for ReadSqlMode
impl Clone for ReadSqlMode
impl Copy for ReadSqlMode
Source§impl Debug for ReadSqlMode
impl Debug for ReadSqlMode
Source§impl Default for ReadSqlMode
impl Default for ReadSqlMode
impl Eq for ReadSqlMode
Source§impl PartialEq for ReadSqlMode
impl PartialEq for ReadSqlMode
impl StructuralPartialEq for ReadSqlMode
Auto Trait Implementations§
impl Forget for ReadSqlMode
impl Freeze for ReadSqlMode
impl Move for ReadSqlMode
impl RefUnwindSafe for ReadSqlMode
impl Send for ReadSqlMode
impl Sync for ReadSqlMode
impl Unpin for ReadSqlMode
impl UnsafeUnpin for ReadSqlMode
impl UnwindSafe for ReadSqlMode
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