mirror of
https://github.com/penpot/penpot.git
synced 2025-03-18 10:41:29 -05:00
🎉 Add neested transaction handling helpers (savepoints).
This commit is contained in:
parent
a783a77404
commit
046ee7e475
1 changed files with 12 additions and 0 deletions
|
@ -190,6 +190,18 @@
|
|||
[data]
|
||||
(org.postgresql.util.PGInterval. ^String data))
|
||||
|
||||
(defn savepoint
|
||||
([^Connection conn]
|
||||
(.setSavepoint conn))
|
||||
([^Connection conn label]
|
||||
(.setSavepoint conn (name label))))
|
||||
|
||||
(defn rollback!
|
||||
([^Connection conn]
|
||||
(.rollback conn))
|
||||
([^Connection conn ^Savepoint sp]
|
||||
(.rollback conn sp)))
|
||||
|
||||
(defn interval
|
||||
[data]
|
||||
(cond
|
||||
|
|
Loading…
Add table
Reference in a new issue