Implement all services in type Repository

This commit is contained in:
2016-12-20 20:46:25 +01:00
parent 04af4bce7e
commit 672376a55c
3 changed files with 17 additions and 14 deletions

12
postgres/repository.go Normal file
View 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
}