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:
parent
8d65998cc3
commit
aaf457a792
1 changed files with 1 additions and 0 deletions
|
@ -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"))]
|
||||
|
|
Loading…
Add table
Reference in a new issue