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

typeorm / typeorm / 15309217157

28 May 2025 07:48PM CUT coverage: 17.233% (-59.1%) from 76.314%
15309217157

Pull #11417

github

web-flow
Merge de89ad5cb into 5003aaa7c
Pull Request #11417: fix: fix up saving lazy many to one relation with existing entities

1603 of 12747 branches covered (12.58%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

15411 existing lines in 175 files now uncovered.

4731 of 24008 relevant lines covered (19.71%)

180.94 hits per line

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

14.29
/src/driver/sqlserver/MssqlParameter.ts
1
/**
2
 * Sql server driver requires parameter types to be specified fo input parameters used in the query.
3
 *
4
 * @see https://github.com/patriksimek/node-mssql#data-types
5
 */
6
export class MssqlParameter {
3✔
UNCOV
7
    readonly "@instanceof" = Symbol.for("MssqlParameter")
×
8

9
    // -------------------------------------------------------------------------
10
    // Public Properties
11
    // -------------------------------------------------------------------------
12

UNCOV
13
    public params: any[] = []
×
14

15
    // -------------------------------------------------------------------------
16
    // Constructor
17
    // -------------------------------------------------------------------------
18

19
    constructor(value: any, type: "bit")
20
    constructor(value: any, type: "bigint")
21
    constructor(value: any, type: "decimal", precision?: number, scale?: number)
22
    constructor(value: any, type: "float")
23
    constructor(value: any, type: "int")
24
    constructor(value: any, type: "money")
25
    constructor(value: any, type: "numeric", precision?: number, scale?: number)
26
    constructor(value: any, type: "smallint")
27
    constructor(value: any, type: "smallmoney")
28
    constructor(value: any, type: "real")
29
    constructor(value: any, type: "tinyint")
30
    constructor(value: any, type: "char", length?: number)
31
    constructor(value: any, type: "nchar", length?: number)
32
    constructor(value: any, type: "text")
33
    constructor(value: any, type: "ntext")
34
    constructor(value: any, type: "varchar", length?: number)
35
    constructor(value: any, type: "nvarchar", length?: number)
36
    constructor(value: any, type: "xml")
37
    constructor(value: any, type: "time", scale?: number)
38
    constructor(value: any, type: "date")
39
    constructor(value: any, type: "datetime")
40
    constructor(value: any, type: "datetime2", scale?: number)
41
    constructor(value: any, type: "datetimeoffset", scale?: number)
42
    constructor(value: any, type: "smalldatetime")
43
    constructor(value: any, type: "uniqueidentifier")
44
    constructor(value: any, type: "variant")
45
    constructor(value: any, type: "binary")
46
    constructor(value: any, type: "varbinary", length?: number)
47
    constructor(value: any, type: "image")
48
    constructor(value: any, type: "udt")
49
    constructor(value: any, type: "geography")
50
    constructor(value: any, type: "geometry")
51
    constructor(value: any, type: "rowversion")
UNCOV
52
    constructor(public value: any, public type: string, ...params: number[]) {
×
UNCOV
53
        this.params = params || []
×
54
    }
55
}
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