Struct scooby::postgres::statements::FromSelectBuilder
source · pub struct FromSelectBuilder { /* private fields */ }
Expand description
Intermediate structure to build a SELECT
statement starting from a FROM
clause
Use the only provided select
method to add a SELECT
clause
Implementations§
source§impl FromSelectBuilder
impl FromSelectBuilder
sourcepub fn select(
self,
expressions: impl IntoIteratorOfSameType<Expression>
) -> Select
pub fn select( self, expressions: impl IntoIteratorOfSameType<Expression> ) -> Select
Specify expressions to be selected, turning this into a Select
structure.
use scooby::postgres::from;
let sql = from("Points").select(("x", "y")).to_string();
assert_eq!(sql, "SELECT x, y FROM Points");
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FromSelectBuilder
impl Send for FromSelectBuilder
impl Sync for FromSelectBuilder
impl Unpin for FromSelectBuilder
impl UnwindSafe for FromSelectBuilder
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