mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Add internal kernel API /api/sqlite/flushTransaction https://github.com/siyuan-note/siyuan/issues/10005
This commit is contained in:
parent
f781d2d183
commit
3016d8eb8c
2 changed files with 9 additions and 0 deletions
|
|
@ -26,6 +26,14 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func flushTransaction(c *gin.Context) {
|
||||
// Add internal kernel API `/api/sqlite/flushTransaction` https://github.com/siyuan-note/siyuan/issues/10005
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
sql.FlushQueue()
|
||||
}
|
||||
|
||||
func SQL(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue