pub struct ReadQuery {
pub text: Vec<u8>,
pub params: Vec<Val>,
}Expand description
A read’s text and its parameters, $1 (the tenant) first. Every value,
limit and offset is a parameter, so the text depends only on the read’s
shape and on whether its window has a limit and a non-zero offset: at
most four texts per shape, whatever the numbers. OFFSET 0 is left out
on purpose: with an OFFSET parameter PostgreSQL estimates a generic plan
as dearer than the custom ones and never reuses it, re-planning on every
execution of the prepared statement.
Fields§
§text: Vec<u8>§params: Vec<Val>Trait Implementations§
impl Eq for ReadQuery
impl StructuralPartialEq for ReadQuery
Auto Trait Implementations§
impl Forget for ReadQuery
impl Freeze for ReadQuery
impl RefUnwindSafe for ReadQuery
impl Send for ReadQuery
impl Sync for ReadQuery
impl Unpin for ReadQuery
impl UnsafeUnpin for ReadQuery
impl UnwindSafe for ReadQuery
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