Skip to content

Support for SQL Server Table Hints & Locks #7031

Closed

Description

@smassin

Hi All,

This a feature request to support SQL Server table hints and locks. I did try to look through the issues list to see if it has already been discussed and code to see if its already available but didn't find anything. I apologize if this has already been discussed.

For now I've only put in a very hacky workaround into my own local version that essentially allows you to use strings to define a SELECT ... FROM ... WITH(...) statement that's appended onto the main query.

findAll({
  where: ...
  with: ["XLOCK", ... ]
})

In no way would that be a final implementation but I wanted to bring it up for discussion and see if there is some way we could add official support and what would be the best practice for doing so.

Thanks

Activity

  1. added
    type: feature
    on Jan 4, 2017
  2. sushantdhiman commented on Jan 5, 2018

    @sushantdhiman
    Contributor

    For now Sequelize will support singular tableHints 11ff776 , which will be expanded later to support multiple hints if required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions