Implement all services in type Repository
This commit is contained in:
12
postgres/repository.go
Normal file
12
postgres/repository.go
Normal file
@ -0,0 +1,12 @@
|
||||
package postgres
|
||||
|
||||
import (
|
||||
"git.javil.eu/jacob1123/budgeteer"
|
||||
"gopkg.in/pg.v5"
|
||||
)
|
||||
|
||||
// Repository represents a PostgreSQL implementation of all ModelServices
|
||||
type Repository struct {
|
||||
DB *pg.DB
|
||||
IDGenerator budgeteer.IDGenerator
|
||||
}
|
Reference in New Issue
Block a user