-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
99 lines (95 loc) · 4.45 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import {
config,
ISqlTypeFactoryWithLength,
ISqlTypeFactoryWithNoParams,
ISqlTypeFactoryWithPrecisionScale,
ISqlTypeFactoryWithScale,
ISqlTypeFactoryWithTvpType,
ISqlTypeWithLength,
ISqlTypeWithNoParams,
ISqlTypeWithPrecisionScale,
ISqlTypeWithScale,
ISqlTypeWithTvpType
} from "mssql"
/**
* Defines the database class.
*/
declare class Database {
/**
* A constructor that creates a new database object with the necessary settings.
* @param {object} settings The settings to use for the mssql module.
*/
constructor(settings: config)
/**
* Executes a query.
* @param {string} sql The SQL query.
* @param {object} [params] The parameters of the query.
* @return {Promise} A promise that resolves when the query is complete.
*/
query(sql: string, params?: {[x: string]: {type: ISqlTypeFactoryWithNoParams | ISqlTypeWithLength | ISqlTypeWithNoParams | ISqlTypeWithPrecisionScale | ISqlTypeWithScale | ISqlTypeWithTvpType, value: any}}): Promise<any>
public static VarChar: ISqlTypeFactoryWithLength
public static VARCHAR: ISqlTypeFactoryWithLength
public static NVarChar: ISqlTypeFactoryWithLength
public static NVARCHAR: ISqlTypeFactoryWithLength
public static Text: ISqlTypeFactoryWithNoParams
public static TEXT: ISqlTypeFactoryWithNoParams
public static Int: ISqlTypeFactoryWithNoParams
public static INT: ISqlTypeFactoryWithNoParams
public static BigInt: ISqlTypeFactoryWithNoParams
public static BIGINT: ISqlTypeFactoryWithNoParams
public static TinyInt: ISqlTypeFactoryWithNoParams
public static TINYINT: ISqlTypeFactoryWithNoParams
public static SmallInt: ISqlTypeFactoryWithNoParams
public static SMALLINT: ISqlTypeFactoryWithNoParams
public static Bit: ISqlTypeFactoryWithNoParams
public static BIT: ISqlTypeFactoryWithNoParams
public static Float: ISqlTypeFactoryWithNoParams
public static FLOAT: ISqlTypeFactoryWithNoParams
public static Numeric: ISqlTypeFactoryWithPrecisionScale
public static NUMERIC: ISqlTypeFactoryWithPrecisionScale
public static Decimal: ISqlTypeFactoryWithPrecisionScale
public static DECIMAL: ISqlTypeFactoryWithPrecisionScale
public static Real: ISqlTypeFactoryWithNoParams
public static REAL: ISqlTypeFactoryWithNoParams
public static Date: ISqlTypeFactoryWithNoParams
public static DATE: ISqlTypeFactoryWithNoParams
public static DateTime: ISqlTypeFactoryWithNoParams
public static DATETIME: ISqlTypeFactoryWithNoParams
public static DateTime2: ISqlTypeFactoryWithScale
public static DATETIME2: ISqlTypeFactoryWithScale
public static DateTimeOffset: ISqlTypeFactoryWithScale
public static DATETIMEOFFSET: ISqlTypeFactoryWithScale
public static SmallDateTime: ISqlTypeFactoryWithNoParams
public static SMALLDATETIME: ISqlTypeFactoryWithNoParams
public static Time: ISqlTypeFactoryWithScale
public static TIME: ISqlTypeFactoryWithScale
public static UniqueIdentifier: ISqlTypeFactoryWithNoParams
public static UNIQUEIDENTIFIER: ISqlTypeFactoryWithNoParams
public static SmallMoney: ISqlTypeFactoryWithNoParams
public static SMALLMONEY: ISqlTypeFactoryWithNoParams
public static Money: ISqlTypeFactoryWithNoParams
public static MONEY: ISqlTypeFactoryWithNoParams
public static Binary: ISqlTypeFactoryWithNoParams
public static BINARY: ISqlTypeFactoryWithNoParams
public static VarBinary: ISqlTypeFactoryWithLength
public static VARBINARY: ISqlTypeFactoryWithLength
public static Image: ISqlTypeFactoryWithNoParams
public static IMAGE: ISqlTypeFactoryWithNoParams
public static Xml: ISqlTypeFactoryWithNoParams
public static XML: ISqlTypeFactoryWithNoParams
public static Char: ISqlTypeFactoryWithLength
public static CHAR: ISqlTypeFactoryWithLength
public static NChar: ISqlTypeFactoryWithLength
public static NCHAR: ISqlTypeFactoryWithLength
public static NText: ISqlTypeFactoryWithNoParams
public static NTEXT: ISqlTypeFactoryWithNoParams
public static TVP: ISqlTypeFactoryWithTvpType
public static UDT: ISqlTypeFactoryWithNoParams
public static Geography: ISqlTypeFactoryWithNoParams
public static GEOGRAPHY: ISqlTypeFactoryWithNoParams
public static Geometry: ISqlTypeFactoryWithNoParams
public static GEOMETRY: ISqlTypeFactoryWithNoParams
public static Variant: ISqlTypeFactoryWithNoParams
public static VARIANT: ISqlTypeFactoryWithNoParams
}
export = Database