Toshihiko adapter for Akyuujs.
$ npm install --save -d akyuu-adapter-toshihiko
Make sure you have a connections
section in your configuration file(s).
And its adapter
should be toshihiko
.
option | required | remark |
---|---|---|
adapter | ✓ | must be toshihiko |
dialect | default to "mysql" , see Toshihiko's document |
|
... | see Toshihiko's document |
Filename: ./config/default/connections.js
module.exports = {
main: {
adapter: "toshihiko",
dialect: "mysql",
database: "test",
username: "root",
password: "",
host: "127.0.0.1",
port: 3306,
showSql: true,
charset: "utf8mb4_bin"
}
};