mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-13 06:23:42 +08:00
feat: read ps dump
This commit is contained in:
11
pkg/db/sqlite.go
Normal file
11
pkg/db/sqlite.go
Normal file
@@ -0,0 +1,11 @@
|
||||
//go:build sqlite
|
||||
|
||||
package db
|
||||
|
||||
import "github.com/glebarez/sqlite"
|
||||
|
||||
func init() {
|
||||
Factory["sqlite"] = func(dsn string) gorm.Dialector {
|
||||
return gorm.Open(sqlite.Open(dsn), &gorm.Config{})
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user