Cargo.toml
toml
[dependencies]
df-db = "*"
json
{
"default": "mysql",
"connections": {
"sqlite": {
"mode": "sqlite",
"keyauto": false,
"hostname": "/系统目录/",
"hostport": "",
"database": "testDB",
"username": "",
"userpass": "",
"charset": "utf8mb4",
"prefix": "",
"params": [],
"debug": false
},
"mysql": {
"mode": "mysql",
"keyauto": false,
"hostname": "127.0.0.1",
"hostport": 3306,
"database": "",
"username": "",
"userpass": "",
"charset": "utf8mb4",
"prefix": "",
"params": [],
"debug": true
},
"mssql": {
"mode": "mssql",
"keyauto": false,
"hostname": "127.0.1",
"hostport": 1433,
"database": "",
"username": "",
"userpass": "",
"charset": "utf8mb4",
"prefix": "",
"params": [],
"debug": true
}
}
}