2 Star 0 Fork 1

taotechip/modules

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
sqlite.go 336 Bytes
Copy Edit Raw Blame History
kyugao authored 2025-04-03 23:49 +08:00 . finish s3 file support
package database
import (
"errors"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
func SqliteDialector(configMap map[string]string) (dialector gorm.Dialector, err error) {
dbPath, okPath := configMap["dbpath"]
if !okPath {
err = errors.New("SQLite数据库路径配置错误")
return
}
dialector = sqlite.Open(dbPath)
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/taotechip/modules.git
git@gitee.com:taotechip/modules.git
taotechip
modules
modules
v1.10.5

Search