pub struct Join { /* private fields */ }
Expand description
Represents a ´JOIN´ clause builder for SQL queries
Implementations§
Source§impl Join
impl Join
Sourcepub fn new(table: &str, join_type: JoinType, on: &str) -> Self
pub fn new(table: &str, join_type: JoinType, on: &str) -> Self
Creates a new Select
instance with the specified table name.
§Example
use lumus_sql_builder::sqlite::{Join, JoinType};
let join = Join::new("phones p", JoinType::Inner, "p.user_id = u.user_id").build().unwrap();
assert_eq!(join, "INNER JOIN phones p ON p.user_id = u.user_id");
pub fn build(self) -> Result<String, SqlBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Join
impl RefUnwindSafe for Join
impl Send for Join
impl Sync for Join
impl Unpin for Join
impl UnwindSafe for Join
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