Trait df_plugin::Model

source ·
pub trait Model {
Show 13 methods fn table(&mut self) -> String; fn title(&mut self) -> String; fn fields(&mut self) -> JsonValue; fn action(&mut self, name: &str) -> Box<dyn Action>; fn version(&mut self) -> String { ... } fn unique(&mut self) -> Vec<String> { ... } fn index(&mut self) -> Vec<Vec<String>> { ... } fn primary_key(&mut self) -> String { ... } fn auto(&mut self) -> bool { ... } fn json(&mut self) -> ModelTable { ... } fn create_json_file(&mut self, path: &str) -> bool { ... } fn columns(&mut self, name: &str) -> JsonValue { ... } fn tables(
        &mut self,
        columns: JsonValue,
        request: JsonValue,
        tools: Tools
    ) -> JsonValue { ... }
}
Expand description

模型

Required Methods§

数据库表名称

模型名称

字段列表

模型动作

Provided Methods§

版本号

数据库唯一约束

查询索引

主键

自动ID值

创建安装json

创建安装文件

Implementors§