[][src]Struct rpa_macros::database::sql::query_builder::QueryBuilder

pub struct QueryBuilder { /* fields omitted */ }

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]

pub fn where_values(
    self,
    field_name: String,
    operator: Operator,
    value: String,
    joiner: WhereJoiner
) -> Self
[src]

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]

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]

impl Debug for QueryBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoCollection<T> for T

impl<T> IntoSql for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,