df-db 0.1.7

This is an orm database mysql mssql sqlite
Documentation

df-db ORM 数据库


License Crates.io Version

Installation


Cargo.toml

[dependencies]
df-db = "*"

支持数据库

  • Mysql
  • Sqlite
  • Mssql

配置

{
  "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
    }
  }
}