pub struct RawQuery<T> { /* private fields */ }Expand description
Typed raw SQL query that materializes rows as T.
T must implement FromRow. Raw SQL is executed exactly as written after
parameter validation and optional query hint rendering; it does not apply
ORM tenant or soft-delete filters automatically.
Implementations§
Source§impl<T> RawQuery<T>
impl<T> RawQuery<T>
Sourcepub fn params<P>(self, values: P) -> Selfwhere
P: RawParams,
pub fn params<P>(self, values: P) -> Selfwhere
P: RawParams,
Appends multiple positional parameters.
Sourcepub fn query_hint(self, hint: QueryHint) -> Self
pub fn query_hint(self, hint: QueryHint) -> Self
Adds a SQL Server query hint to render at the end of the raw query.
Repeated hints are deduplicated with stable ordering.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RawQuery<T>
impl<T> !RefUnwindSafe for RawQuery<T>
impl<T> Send for RawQuery<T>
impl<T> Sync for RawQuery<T>
impl<T> Unpin for RawQuery<T>
impl<T> UnsafeUnpin for RawQuery<T>
impl<T> !UnwindSafe for RawQuery<T>
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