🎨 搜索区分大小写根据配置项单独建立索引 Fix https://github.com/siyuan-note/siyuan/issues/5889

This commit is contained in:
Liang Ding 2022-09-16 09:20:36 +08:00
parent ef095fe3d6
commit 0db807cea8
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 14 additions and 29 deletions

View file

@ -252,7 +252,10 @@ func initDBConnection() {
db.SetConnMaxLifetime(365 * 24 * time.Hour)
}
var caseSensitive bool
func SetCaseSensitive(b bool) {
caseSensitive = b
if b {
db.Exec("PRAGMA case_sensitive_like = ON;")
} else {