Files
sonr/internal/db/database.go
T

18 lines
215 B
Go
Raw Normal View History

2024-09-11 15:10:54 -04:00
package db
import "gorm.io/gorm"
type DB struct {
*gorm.DB
}
func New(opts ...DBOption) *DBConfig {
config := &DBConfig{
fileName: "vault.db",
}
for _, opt := range opts {
opt(config)
}
return config
}