Struct akita::Wrapper [−][src]
pub struct Wrapper {
pub param_name_seq: i32,
pub sql_set: Vec<String>,
pub fields_set: Vec<(String, Segment)>,
pub sql_select: Option<String>,
pub sql_comment: Option<String>,
pub sql_first: Option<String>,
pub last_sql: Option<String>,
pub expression: MergeSegments,
}
Fields
param_name_seq: i32
必要度量
sql_set: Vec<String>
SQL set字段
fields_set: Vec<(String, Segment)>
set 字段
sql_select: Option<String>
SQL查询字段
sql_comment: Option<String>
SQL注释
sql_first: Option<String>
SQL起始语句
last_sql: Option<String>
SQL结束语句
expression: MergeSegments
Implementations
pub fn set_conditions<S: Into<String>, U: ISegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn set_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn eq_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn ne_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn gt_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn ge_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn lt_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn le_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn not_in_condition<S: Into<String>, U: ToSegment + Clone>(
self,
condition: bool,
column: S,
vals: Vec<U>
) -> Self
pub fn in_condition<S: Into<String>, U: ToSegment + Clone>(
self,
condition: bool,
column: S,
vals: Vec<U>
) -> Self
pub fn like_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn not_like_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn like_left_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn like_right_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val: U
) -> Self
pub fn between_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val1: U,
val2: U
) -> Self
pub fn not_between_condition<S: Into<String>, U: ToSegment>(
self,
condition: bool,
column: S,
val1: U,
val2: U
) -> Self
pub fn add_condition(
self,
condition: bool,
column: Segment,
sql_keword: SqlKeyword,
val: Segment
) -> Self
pub fn like_value(
self,
condition: bool,
column: Segment,
sql_like: SqlLike,
val: Segment
) -> Self
pub fn not_exists_condition<S: Into<String>>(
self,
condition: bool,
not_exists_sql: S
) -> Self
pub fn in_sql_condition<S: Into<String>, U: Into<String>>(
self,
condition: bool,
column: S,
in_val: U
) -> Self
pub fn order_by_condition<S: Into<String> + Clone>(
self,
condition: bool,
is_asc: bool,
columns: Vec<S>
) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Wrapper
impl UnwindSafe for Wrapper
Blanket Implementations
Mutably borrows from an owned value. Read more