0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Add support for ::sql/order-by on db/sql layer

This commit is contained in:
Andrey Antukh 2024-02-08 15:20:21 +01:00 committed by Andrés Moya
parent 8d65998cc3
commit aaf457a792

View file

@ -47,6 +47,7 @@
([table where-params opts]
(let [opts (merge default-opts opts)
opts (cond-> opts
(::order-by opts) (assoc :order-by (::order-by opts))
(::columns opts) (assoc :columns (::columns opts))
(::for-update opts) (assoc :suffix "FOR UPDATE")
(::for-share opts) (assoc :suffix "FOR SHARE"))]