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

typeorm / typeorm / 14796576772

02 May 2025 01:52PM UTC coverage: 45.367% (-30.9%) from 76.309%
14796576772

Pull #11434

github

web-flow
Merge ec4ce2d00 into fadad1a74
Pull Request #11434: feat: release PR releases using pkg.pr.new

5216 of 12761 branches covered (40.87%)

Branch coverage included in aggregate %.

11439 of 23951 relevant lines covered (47.76%)

15712.55 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 {
4✔
7
    readonly "@instanceof" = Symbol.for("MssqlParameter")
×
8

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

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")
52
    constructor(public value: any, public type: string, ...params: number[]) {
×
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