mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 数据统计
This commit is contained in:
parent
70490f3e16
commit
953ce38ab7
7 changed files with 51 additions and 12 deletions
|
|
@ -92,10 +92,3 @@ func getStat(key string) (ret string) {
|
|||
row.Scan(&ret)
|
||||
return
|
||||
}
|
||||
|
||||
func CountAllDoc() (ret int) {
|
||||
sqlStmt := "SELECT COUNT(*) FROM blocks WHERE type = 'd'"
|
||||
row := queryRow(sqlStmt)
|
||||
row.Scan(&ret)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue