[−][src]Struct rpa_macros::database::sql::query_builder::QueryBuilder
Implementations
impl QueryBuilder
[src]
pub fn new(table_name: String) -> QueryBuilder
[src]
pub fn select(self, field_name: String) -> Self
[src]
pub fn select_fields(self, field_names: Vec<String>) -> Self
[src]
pub fn from_table(self, table_name: String) -> Self
[src]
pub fn join_table(
self,
join_table: String,
from_field: String,
to_field: String,
join_type: JoinType
) -> Self
[src]
self,
join_table: String,
from_field: String,
to_field: String,
join_type: JoinType
) -> Self
pub fn where_values(
self,
field_name: String,
operator: Operator,
value: String,
joiner: WhereJoiner
) -> Self
[src]
self,
field_name: String,
operator: Operator,
value: String,
joiner: WhereJoiner
) -> Self
pub fn order_by(self, condition: String, order: Order) -> Self
[src]
pub fn group_by(self, field_name: String) -> Self
[src]
pub fn having(
self,
condition: String,
operator: Operator,
value: String
) -> Self
[src]
self,
condition: String,
operator: Operator,
value: String
) -> Self
pub fn with_pagination(self, pagination: Option<Pagination>) -> Self
[src]
pub fn build(self, connection: &MysqlConnection) -> Result<Query, RpaError>
[src]
Trait Implementations
impl Clone for QueryBuilder
[src]
fn clone(&self) -> QueryBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for QueryBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnwindSafe for QueryBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,