table-hints.js
889 Bytes
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
'use strict';
/**
* An enum of table hints to be used in mssql for querying with table hints
*
* @property NOLOCK
* @property READUNCOMMITTED
* @property UPDLOCK
* @property REPEATABLEREAD
* @property SERIALIZABLE
* @property READCOMMITTED
* @property TABLOCK
* @property TABLOCKX
* @property PAGLOCK
* @property ROWLOCK
* @property NOWAIT
* @property READPAST
* @property XLOCK
* @property SNAPSHOT
* @property NOEXPAND
*/
const TableHints = module.exports = { // eslint-disable-line
NOLOCK: 'NOLOCK',
READUNCOMMITTED: 'READUNCOMMITTED',
UPDLOCK: 'UPDLOCK',
REPEATABLEREAD: 'REPEATABLEREAD',
SERIALIZABLE: 'SERIALIZABLE',
READCOMMITTED: 'READCOMMITTED',
TABLOCK: 'TABLOCK',
TABLOCKX: 'TABLOCKX',
PAGLOCK: 'PAGLOCK',
ROWLOCK: 'ROWLOCK',
NOWAIT: 'NOWAIT',
READPAST: 'READPAST',
XLOCK: 'XLOCK',
SNAPSHOT: 'SNAPSHOT',
NOEXPAND: 'NOEXPAND'
};