pub enum Db {
None,
}Variants§
None
Implementations§
Trait Implementations§
source§impl Mode for Db
impl Mode for Db
source§fn order(&mut self, field: &str, by: bool) -> &mut Self
fn order(&mut self, field: &str, by: bool) -> &mut Self
排序
- field 排序字段
- by 排序方法 true 降序 false 升序
source§fn database_create(&mut self, name: &str) -> bool
fn database_create(&mut self, name: &str) -> bool
创建数据库
fn table_create(&mut self, data: Table) -> JsonValue
fn table_update(&mut self, data: Table) -> 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
判断表是否存在
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 transaction(&mut self) -> bool
fn transaction(&mut self) -> bool
事务开始
Auto Trait Implementations§
impl RefUnwindSafe for Db
impl Send for Db
impl Sync for Db
impl Unpin for Db
impl UnwindSafe for Db
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