mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 搜索区分大小写根据配置项单独建立索引 Fix https://github.com/siyuan-note/siyuan/issues/5889
This commit is contained in:
parent
ef095fe3d6
commit
0db807cea8
5 changed files with 14 additions and 29 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue