mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Add SQL query template function querySQL https://github.com/siyuan-note/siyuan/issues/13455
This commit is contained in:
parent
1dc297d856
commit
322949e8e1
5 changed files with 1149 additions and 1012 deletions
|
|
@ -1513,4 +1513,8 @@ func SQLTemplateFuncs(templateFuncMap *template.FuncMap) {
|
|||
retSpans = SelectSpansRawStmt(stmt, 512)
|
||||
return
|
||||
}
|
||||
(*templateFuncMap)["querySQL"] = func(stmt string) (ret []map[string]interface{}) {
|
||||
ret, _ = Query(stmt, 1024)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue