pub struct Select<T: SurrealRecord> { /* private fields */ }Implementations§
Source§impl<T: SurrealRecord> Select<T>
impl<T: SurrealRecord> Select<T>
pub fn filter(self, expr: impl DynExpr + 'static) -> Self
pub fn limit(self, n: u32) -> Self
pub fn start(self, n: u32) -> Self
pub fn fetch(self, field: &str) -> Self
pub fn group_by<C: DynExpr>(self, col: C) -> Self
Sourcepub fn count_as(self, alias: &'static str) -> Self
pub fn count_as(self, alias: &'static str) -> Self
Alias for the count() projection: SELECT count() AS <alias>.
pub fn order_by<C: DynExpr>(self, col: C, dir: Order) -> Self
pub fn order_asc<C: DynExpr>(self, col: C) -> Self
pub fn order_desc<C: DynExpr>(self, col: C) -> Self
pub fn to_surrealql(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Select<T>
impl<T> !UnwindSafe for Select<T>
impl<T> Freeze for Select<T>
impl<T> Send for Select<T>
impl<T> Sync for Select<T>
impl<T> Unpin for Select<T>where
T: Unpin,
impl<T> UnsafeUnpin for Select<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more