没有合适的资源?快使用搜索试试~ 我知道了~
egg-typeorm:Egg用于Egg.js的TypeORM插件
共58个文件
ts:24个
js:13个
json:5个
需积分: 50 1 下载量 178 浏览量
2021-05-03
16:07:27
上传
评论
收藏 36KB ZIP 举报
温馨提示
egg-typeorm plugin for Egg.js. 安装 $ npm install -S @hackycy/egg-typeorm mysql 使用 插件启用 // {app_root}/config/plugin.ts const plugin: EggPlugin = { typeorm: { enable: true, package: '@hackycy/egg-typeorm', }, } 配置实体存放目录 在项目根目录添加ormconfig.{js|json|yaml|yml}文件(配置支持后缀中的任意一种即可) ormconfig.js // 单数据库连接 module.exports = { entitiesDir: "app/entity/db1" }; // 或者多数据库连接 module.exports = [ {
资源推荐
资源详情
资源评论
收起资源包目录
egg-typeorm-master.zip (58个子文件)
egg-typeorm-master
generator.js 88B
.eslintrc 37B
.github
PULL_REQUEST_TEMPLATE.md 877B
lib
logger.js 2KB
dts.js 5KB
utils.js 7KB
connect.js 2KB
app.js 1003B
.travis.yml 180B
example
.eslintrc 106B
ormconfig.json 198B
.travis.yml 171B
tsconfig.json 717B
config
config.prod.ts 928B
config.default.ts 641B
plugin.ts 264B
config.unittest.ts 928B
config.local.ts 928B
test
app
service
Test.test.ts 554B
controller
home.test.ts 297B
ormconfig.json.txt 372B
README.md 575B
migration
1603211940984-UserRefactoring.ts 476B
typings
config
index.d.ts 374B
plugin.d.ts 864B
typeorm.d.ts 1008B
app
service
index.d.ts 562B
controller
index.d.ts 232B
index.d.ts 145B
appveyor.yml 241B
.gitignore 198B
app
router.ts 159B
service
Test.ts 409B
controller
home.ts 290B
entity
db2
sys
user.ts 217B
user.ts 217B
db1
sys
user.ts 217B
user.ts 217B
db3
admin
user.ts 217B
user.ts 217B
ormconfig.yaml 111B
.eslintignore 24B
package.json 1KB
.autod.conf.js 351B
LICENSE 1KB
test
fixtures
apps
typeorm-test
config
config.default.js 366B
app
controller
home.js 222B
router.js 125B
package.json 50B
typeorm.test.js 404B
README.md 5KB
index.d.ts 688B
appveyor.yml 268B
.gitignore 90B
app
extend
context.js 356B
.eslintignore 23B
package.json 2KB
.autod.conf.js 333B
共 58 条
- 1
资源评论
简内特
- 粉丝: 29
- 资源: 4715
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功