table-hints.js 888 B

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