pub struct Mssql {
pub connection: Connection,
pub default: String,
pub params: Params,
}Fields§
§connection: Connection当前连接配置
default: String当前选中配置
params: ParamsImplementations§
Trait Implementations§
Source§impl Mode for Mssql
impl Mode for Mssql
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>
Source§fn join(
&mut self,
main_table: &str,
main_fields: &str,
right_table: &str,
right_fields: &str,
) -> &mut Self
fn join( &mut self, main_table: &str, main_fields: &str, right_table: &str, right_fields: &str, ) -> &mut Self
连结 Read more
Source§fn join_inner(
&mut self,
table: &str,
main_fields: &str,
second_fields: &str,
) -> &mut Self
fn join_inner( &mut self, table: &str, main_fields: &str, second_fields: &str, ) -> &mut Self
内连接–用来取交集 Read more
fn join_fields(&mut self, fields: Vec<&str>) -> &mut Self
Auto Trait Implementations§
impl Freeze for Mssql
impl RefUnwindSafe for Mssql
impl Send for Mssql
impl Sync for Mssql
impl Unpin for Mssql
impl UnwindSafe for Mssql
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