taskcafe/internal/db/repository.go
Jordan Knott 64093e19f6 redesign
2022-05-06 16:44:31 -05:00

18 lines
334 B
Go

package db
import "database/sql"
// Repository contains methods for interacting with a database storage
type Repository struct {
*Queries
db *sql.DB
}
// NewRepository returns an implementation of the Repository interface.
func NewRepository(db *sql.DB) *Repository {
return &Repository{
Queries: New(db),
db: db,
}
}