1 | ;
|
2 |
|
3 | /**
|
4 | * An enum of table hints to be used in mssql for querying with table hints
|
5 | *
|
6 | * @property NOLOCK
|
7 | * @property READUNCOMMITTED
|
8 | * @property UPDLOCK
|
9 | * @property REPEATABLEREAD
|
10 | * @property SERIALIZABLE
|
11 | * @property READCOMMITTED
|
12 | * @property TABLOCK
|
13 | * @property TABLOCKX
|
14 | * @property PAGLOCK
|
15 | * @property ROWLOCK
|
16 | * @property NOWAIT
|
17 | * @property READPAST
|
18 | * @property XLOCK
|
19 | * @property SNAPSHOT
|
20 | * @property NOEXPAND
|
21 | */
|
22 | const TableHints = module.exports = { // eslint-disable-line
|
23 | NOLOCK: 'NOLOCK',
|
24 | READUNCOMMITTED: 'READUNCOMMITTED',
|
25 | UPDLOCK: 'UPDLOCK',
|
26 | REPEATABLEREAD: 'REPEATABLEREAD',
|
27 | SERIALIZABLE: 'SERIALIZABLE',
|
28 | READCOMMITTED: 'READCOMMITTED',
|
29 | TABLOCK: 'TABLOCK',
|
30 | TABLOCKX: 'TABLOCKX',
|
31 | PAGLOCK: 'PAGLOCK',
|
32 | ROWLOCK: 'ROWLOCK',
|
33 | NOWAIT: 'NOWAIT',
|
34 | READPAST: 'READPAST',
|
35 | XLOCK: 'XLOCK',
|
36 | SNAPSHOT: 'SNAPSHOT',
|
37 | NOEXPAND: 'NOEXPAND'
|
38 | };
|