pub struct Params {Show 27 fields
pub mode: String,
pub autoinc: bool,
pub table: String,
pub where_and: Vec<String>,
pub where_or: Vec<String>,
pub where_column: String,
pub update_column: Vec<String>,
pub inc_dec: JsonValue,
pub page: i32,
pub limit: i32,
pub fields: JsonValue,
pub top: String,
pub top2: String,
pub order: JsonValue,
pub group: JsonValue,
pub distinct: bool,
pub json: JsonValue,
pub location: JsonValue,
pub sql: bool,
pub join: Vec<String>,
pub join_inner: Vec<String>,
pub join_table: String,
pub having: Vec<String>,
pub limit_only: i32,
pub timestamps: bool,
pub unions: Vec<String>,
pub lock_mode: String,
}Fields§
§mode: String§autoinc: bool§table: String§where_and: Vec<String>§where_or: Vec<String>§where_column: String§update_column: Vec<String>§inc_dec: JsonValue§page: i32§limit: i32§fields: JsonValue§top: String§top2: String§order: JsonValue§group: JsonValue§distinct: bool§json: JsonValue§location: JsonValue§sql: bool§join: Vec<String>§join_inner: Vec<String>§join_table: String§having: Vec<String>§limit_only: i32独立 LIMIT(不带分页偏移)
timestamps: bool§unions: Vec<String>§lock_mode: StringImplementations§
Source§impl Params
impl Params
pub fn default(mode: &str) -> Self
pub fn where_sql(&mut self) -> String
pub fn page_limit_sql(&mut self) -> String
pub fn fields(&mut self) -> String
pub fn top(&mut self) -> String
pub fn top2(&mut self) -> String
pub fn table(&mut self) -> String
pub fn join(&mut self) -> String
pub fn join_inner(&mut self) -> String
pub fn order(&mut self) -> String
pub fn group(&mut self) -> String
pub fn having(&mut self) -> String
pub fn distinct(&self) -> String
pub fn select_sql(&mut self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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