pub struct Sqlite {
pub connection: Connection,
pub default: String,
pub params: Params,
}Fields§
§connection: Connection当前连接配置
default: String当前选中配置
params: ParamsImplementations§
Trait Implementations§
Source§impl Mode for Sqlite
impl Mode for Sqlite
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>
Auto Trait Implementations§
impl Freeze for Sqlite
impl RefUnwindSafe for Sqlite
impl Send for Sqlite
impl Sync for Sqlite
impl Unpin for Sqlite
impl UnwindSafe for Sqlite
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