mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 04:06:11 +02: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]
|
([table where-params opts]
|
||||||
(let [opts (merge default-opts opts)
|
(let [opts (merge default-opts opts)
|
||||||
opts (cond-> opts
|
opts (cond-> opts
|
||||||
|
(::order-by opts) (assoc :order-by (::order-by opts))
|
||||||
(::columns opts) (assoc :columns (::columns opts))
|
(::columns opts) (assoc :columns (::columns opts))
|
||||||
(::for-update opts) (assoc :suffix "FOR UPDATE")
|
(::for-update opts) (assoc :suffix "FOR UPDATE")
|
||||||
(::for-share opts) (assoc :suffix "FOR SHARE"))]
|
(::for-share opts) (assoc :suffix "FOR SHARE"))]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue