Closed josephsumabat closed 1 year ago
@parsonsmatt I've changed the monoid instance to concatenate postgres locking clauses (which results in a valid query) and prioritize general locking clauses over postgres ones.
Past few commits were just updating documentation and version number
Context: Support
FOR UPDATE Of tablename
andFOR SHARE OF tablename
syntax for Postgresql:This allows a the
FOR UPDATE SKIP LOCKED
behaviour when you have aLEFT OUTER JOIN
with a nullable side. Currently you will get the error:The workaround currently using esqueleto is to do seperate queries and then join them manually if you want to select rows for an update while skipping locked rows (or to just do a raw query). I ran into this situation at work.
See: https://www.postgresql.org/docs/current/sql-select.html namely:
also documented in MySQL: https://dev.mysql.com/doc/refman/8.0/en/select.html
Usage example would be
@since
declarations to the Haddock.stylish-haskell
and otherwise adhered to the style guide.After submitting your PR: