Skip to content

[Feature]: Expose SKIP LOCKED #240

Description

@roxblnfk

Is your feature request related to a problem? Please describe.

Expose SKIP LOCKED instruction

Describe the solution you'd like

PGSQL, MySQL:

SELECT * FROM tasks 
WHERE status = 'pending' 
FOR UPDATE SKIP LOCKED 
LIMIT 1;

MSSQL:

SELECT TOP 1 * FROM tasks WITH (UPDLOCK, READPAST)
WHERE status = 'pending';

Describe alternatives you've considered

No response

Additional context

No response

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions