pub struct Mysql {
pub connection: Connection,
pub default: String,
pub params: Params,
pub pool: Pool,
}Fields§
§connection: Connection当前连接配置
default: String当前选中配置
params: Params§pool: PoolImplementations§
Trait Implementations§
Source§impl Mode for Mysql
impl Mode for Mysql
fn table_create(&mut self, options: TableOptions) -> JsonValue
fn table_update(&mut self, options: TableOptions) -> JsonValue
Source§fn table_info(&mut self, table: &str) -> JsonValue
fn table_info(&mut self, table: &str) -> JsonValue
获取表信息
Source§fn table_is_exist(&mut self, name: &str) -> bool
fn table_is_exist(&mut self, name: &str) -> bool
判断表是否存在
Source§fn change_table(&mut self, name: &str) -> &mut Self
fn change_table(&mut self, name: &str) -> &mut Self
别名
隐藏字段
fn where_or( &mut self, field: &str, compare: &str, value: JsonValue, ) -> &mut Self
Source§fn insert_all(&mut self, data: JsonValue) -> JsonValue
fn insert_all(&mut self, data: JsonValue) -> JsonValue
批量添加
Source§fn update_all(&mut self, data: JsonValue) -> JsonValue
fn update_all(&mut self, data: JsonValue) -> JsonValue
批量更新
Source§fn transaction(&mut self) -> bool
fn transaction(&mut self) -> bool
事务开始
fn sql_execute(&mut self, sql: &str) -> Result<JsonValue, String>
fn join_fields(&mut self, fields: Vec<&str>) -> &mut Self
Auto Trait Implementations§
impl Freeze for Mysql
impl RefUnwindSafe for Mysql
impl Send for Mysql
impl Sync for Mysql
impl Unpin for Mysql
impl UnwindSafe for Mysql
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