剧场模式
首页后端TypeScriptTypeORM 从入门到实战视频教程

#2 使用 TypeORM 创建项目

求知小风 · 真仙发布于新课程
0

https://www.qiuzhi99.com/movies/sql/968.html

https://www.qiuzhi99.com/movies/3-gong-yu-shan-qi-shi-bi-xian-li-qi-qi

https://typeorm.io/#/

typeorm init --name MyProject --database postgres
{
  "type": "postgres",
  "host": "localhost",
  "port": 5432,
  "username": "hfpp2012",
  "password": "",
  "database": "typeorm",
  "synchronize": true,
  "logging": false,
  "entities": ["src/entity/**/*.ts"],
  "migrations": ["src/migration/**/*.ts"],
  "subscribers": ["src/subscriber/**/*.ts"],
  "cli": {
    "entitiesDir": "src/entity",
    "migrationsDir": "src/migration",
    "subscribersDir": "src/subscriber"
  }
}
0 条回复
暂无回复~~

© 汕尾市求知科技有限公司 | 粤ICP备19038915号 | 在线学员:142

Top