Gathering detailed insights and metrics for @midwayjs/typeorm
Gathering detailed insights and metrics for @midwayjs/typeorm
Gathering detailed insights and metrics for @midwayjs/typeorm
Gathering detailed insights and metrics for @midwayjs/typeorm
🍔 A Node.js Serverless Framework for front-end/full-stack developers. Build the application for next decade. Works on AWS, Alibaba Cloud, Tencent Cloud and traditional VM/Container. Super easy integrate with React and Vue. 🌈
npm install @midwayjs/typeorm
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (62.04%)
Shell (34.86%)
JavaScript (2.91%)
CSS (0.15%)
HTML (0.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7,581 Stars
4,116 Commits
583 Forks
98 Watchers
33 Branches
174 Contributors
Updated on Jul 05, 2025
Minified
Minified + Gzipped
Latest Version
3.20.4
Package Id
@midwayjs/typeorm@3.20.4
Unpacked Size
19.33 kB
Size
5.61 kB
File Count
17
NPM Version
lerna/7.4.2/node@v18.20.4+arm64 (darwin)
Node Version
18.20.4
Published on
Apr 10, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
in Configuration.ts file
1import * as typeorm from '@midwayjs/typeorm'; 2import { join } from 'path'; 3 4@Configuration({ 5 imports: [ 6 typeorm, 7 ], 8 importConfigs: [ 9 join(__dirname, './config') 10 ] 11}) 12export class ContainerConfiguration { 13} 14
in config files
1export default { 2 typeorm: { 3 dataSource: { 4 default: { 5 type: 'mysql', 6 host: '', 7 port: 3306, 8 username: '', 9 password: '', 10 database: undefined, 11 synchronize: true, 12 logging: false, 13 } 14 } 15 } 16};
1// model/user.ts 2import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from 'typeorm'; 3 4@Entity('test_user') 5export class Photo { 6 @PrimaryGeneratedColumn({ name: "id" }) 7 id: number; 8 9 @Column({ name: "name" }) 10 name: string; 11 12 @OneToMany(type => Message, message => message.sender) 13 messages: Message[]; 14}
in code files
1import { InjectEntityModel } from '@midwayjs/orm'; 2import { User } from './model/user'; 3import { Repository } from 'typeorm'; 4 5@Provide() 6export class UserService { 7 8 @InjectEntityModel(User) 9 userModel: Repository<User>; 10 11 async testUser() { 12 const u = new User(); 13 u.name = 'oneuser1'; 14 const uu = await this.userModel.save(u); 15 console.log('user one id = ', uu.id); 16 17 const user = new User(); 18 user.id = 1; 19 const users = await this.userModel.findAndCount({ 20 where: user 21 }); 22 return 'hello world' + JSON.stringify(users); 23 } 24}
No vulnerabilities found.
Reason
22 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 3/17 approved changesets -- score normalized to 1
Reason
security policy file not detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
46 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More