Function df_plugin::plugins

source ·
pub fn plugins(name: &str) -> Box<dyn Plugin>
Expand description

内部插件入口

Examples found in repository?
examples/db.rs (line 11)
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    let root_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
    // 生成数据库文件
    let sql_path = root_path.join("model");
    let sql_path = sql_path.to_str().unwrap();

    let test = plugins("test").model("testmodel").create_json_file(sql_path);
    println!("{}", test);
    //
    // let (code, data, msg) = plugins("test").model("testmodel").action("testaction").run(object! {});
    // println!("{} {} {}", code, data, msg);
}