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

typeorm / typeorm / 14902398638

08 May 2025 08:43AM CUT coverage: 5.343% (-71.0%) from 76.299%
14902398638

Pull #11432

github

web-flow
Merge a47b68113 into 80e9b3004
Pull Request #11432: feat: add tagged template for executing raw SQL queries

315 of 12740 branches covered (2.47%)

Branch coverage included in aggregate %.

30 of 42 new or added lines in 7 files covered. (71.43%)

17206 existing lines in 205 files now uncovered.

1648 of 23998 relevant lines covered (6.87%)

188.2 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 {
40✔
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