• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

typeorm / typeorm / 15219332477

23 May 2025 09:13PM UTC coverage: 17.216% (-59.1%) from 76.346%
15219332477

Pull #11332

github

naorpeled
cr comments - move if block
Pull Request #11332: feat: add new undefined and null behavior flags

1603 of 12759 branches covered (12.56%)

Branch coverage included in aggregate %.

0 of 31 new or added lines in 3 files covered. (0.0%)

14132 existing lines in 166 files now uncovered.

4731 of 24033 relevant lines covered (19.69%)

60.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/query-builder/result/UpdateResult.ts
1
import { ObjectLiteral } from "../../common/ObjectLiteral"
2
import { QueryResult } from "../../query-runner/QueryResult"
3

4
/**
5
 * Result object returned by UpdateQueryBuilder execution.
6
 */
7
export class UpdateResult {
1✔
8
    static from(queryResult: QueryResult) {
UNCOV
9
        const result = new this()
×
UNCOV
10
        result.raw = queryResult.records
×
UNCOV
11
        result.affected = queryResult.affected
×
UNCOV
12
        return result
×
13
    }
14

15
    /**
16
     * Raw SQL result returned by executed query.
17
     */
18
    raw: any
19

20
    /**
21
     * Number of affected rows/documents
22
     * Not all drivers support this
23
     */
24
    affected?: number
25

26
    /**
27
     * Contains inserted entity id.
28
     * Has entity-like structure (not just column database name and values).
29
     */
30
    // identifier: ObjectLiteral[] = [];
31

32
    /**
33
     * Generated values returned by a database.
34
     * Has entity-like structure (not just column database name and values).
35
     */
36
    generatedMaps: ObjectLiteral[] = []
16✔
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc