mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 17:50:12 +00:00
14 lines
283 B
Go
14 lines
283 B
Go
//go:build agentcompat && linux
|
|
|
|
package singleton
|
|
|
|
import (
|
|
"gorm.io/driver/sqlite"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
func openSQLiteDialector(path string) gorm.Dialector {
|
|
registerSQLiteAttributionDriver()
|
|
return sqlite.New(sqlite.Config{DriverName: sqliteAttributionDriverName, DSN: path})
|
|
}
|