pub struct SelectBuilder { /* private fields */ }Implementations§
Source§impl SelectBuilder
impl SelectBuilder
pub fn new(select_clause: String, from_table: Option<&'static str>) -> Self
pub fn inner_join<Base: Model, Join: Model>(self, on: Vec<Kwargs>) -> Self
pub fn left_join<Base: Model, Join: Model>(self, on: Vec<Kwargs>) -> Self
pub fn right_join<Base: Model, Join: Model>(self, on: Vec<Kwargs>) -> Self
pub fn where(self, conditions: Vec<Kwargs>) -> Self
pub async fn fetch_one<Output>(self, conn: &Connection) -> Result<Output, Error>
pub async fn fetch_all<Output>( self, conn: &Connection, ) -> Result<Vec<Output>, Error>
pub async fn fetch_optional<Output>( self, conn: &Connection, ) -> Result<Option<Output>, Error>
Auto Trait Implementations§
impl Freeze for SelectBuilder
impl RefUnwindSafe for SelectBuilder
impl Send for SelectBuilder
impl Sync for SelectBuilder
impl Unpin for SelectBuilder
impl UnsafeUnpin for SelectBuilder
impl UnwindSafe for SelectBuilder
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
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