mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-13 15:30:24 +08:00
访问日志关键词支持完整的URL/优化Like语句
This commit is contained in:
14
internal/db/utils/utils_test.go
Normal file
14
internal/db/utils/utils_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package dbutils_test
|
||||
|
||||
import (
|
||||
dbutils "github.com/TeaOSLab/EdgeAPI/internal/db/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestQuoteLike(t *testing.T) {
|
||||
for _, s := range []string{"abc", "abc%", "_abc%%%"} {
|
||||
t.Log(s + " => " + dbutils.QuoteLike(s))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user