OptionalforLock the selected rows in share mode using SELECT ... FOR SHARE. The lock is held until the
end of the transaction, so the query context must be transactional. Mutually exclusive with forUpdate.
OptionalforLock the selected rows for update using SELECT ... FOR UPDATE. The lock is held until the
end of the transaction, so the query context must be transactional. Mutually exclusive with forShare.
OptionallimitLimit the number of entities returned.
OptionaloffsetSkip the specified number of entities queried before returning.
OptionalorderOrder the entities by specified columns and orders.
OptionalskipSkip rows that are already locked by another transaction using SKIP LOCKED instead of waiting for them.
Requires forUpdate or forShare.
SQL modifiers that only affect the selection but not the projection.