23 lines
405 B
Go
Raw Normal View History

2024-11-26 13:36:40 -08:00
package gormstore
import (
2024-11-26 18:30:58 -05:00
"git.itzana.me/strafesnet/maps-service/pkg/datastore"
2024-11-26 13:36:40 -08:00
"gorm.io/gorm"
)
type Gormstore struct {
2024-11-26 18:30:58 -05:00
db *gorm.DB
2024-11-26 13:36:40 -08:00
}
2024-11-26 18:30:58 -05:00
func (g Gormstore) Submissions() datastore.Submissions {
return &Submissions{db: g.db}
2024-11-26 13:36:40 -08:00
}
2024-12-04 17:27:49 -08:00
func (g Gormstore) Scripts() datastore.Scripts {
return &Scripts{db: g.db}
}
func (g Gormstore) ScriptPolicy() datastore.ScriptPolicy {
return &ScriptPolicy{db: g.db}
}