mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Add SQL query template function querySQL https://github.com/siyuan-note/siyuan/issues/13455
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user