@gulibs/tegg-sequelize
v1.1.3
Published
> egg插件,在egg项目使用sequelize-typescript
Downloads
4
Readme
tegg-sequelize
egg插件,在egg项目使用sequelize-typescript
Install
$ npm i @gulibs/tegg-sequelize --save
or
$ yarn add @gulibs/tegg-sequelize
Usage
// {app_root}/config/plugin.ts
exports.teggSequelize = {
enable: true,
package: '@gulibs/tegg-sequelize',
};
Configuration
// {app_root}/config/config.default.ts
const config = {
tsSequelize: {
client: {
database: "database name",
username: "",
password: "",
dialect: "mysql",
port: 3306,
host: "127.0.0.1"
}
}
} as PowerPartial<EggAppConfig>;