db.go 201 B

12345678910111213
  1. package store
  2. import "gorm.io/gorm"
  3. // Store is the central data access layer.
  4. type Store struct {
  5. DB *gorm.DB
  6. }
  7. // New creates a new Store.
  8. func New(db *gorm.DB) *Store {
  9. return &Store{DB: db}
  10. }