egg-grus-typeorm
v1.0.3
Published
TypeORM for Egg.js
Downloads
13
Maintainers
Readme
egg-grus-typeorm
Install
$ npm i egg-grus-typeorm --save
Usage
// {app_root}/config/plugin.js
exports.typeorm = {
enable: true,
package: 'egg-grus-typeorm',
};
Configuration
// {app_root}/config/config.default.js
exports.typeorm = {
};
// use egg-ts-helper
// {app_root}/tshelper.js
module.exports = {
watchDirs: {
model: {
directory: 'app/entity', // files directory.
generator: 'class', // generator name, eg: class、auto、function、object
interface: 'IEntity', // interface name
},
}
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.