refactoring, fixes and laniakea v0.8
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package psql
|
||||
|
||||
import (
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
"ymgb/database"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
"github.com/vinovest/sqlx"
|
||||
)
|
||||
@@ -25,8 +26,8 @@ type GroupRepository struct {
|
||||
func newGroupRepository(db *sqlx.DB) GroupRepository {
|
||||
return GroupRepository{db}
|
||||
}
|
||||
func NewGroupRepository(db *laniakea.DatabaseContext) GroupRepository {
|
||||
return newGroupRepository(db.PostgresSQL)
|
||||
func NewGroupRepository(db *database.Context) GroupRepository {
|
||||
return newGroupRepository(db.Postgres)
|
||||
}
|
||||
|
||||
func (rep GroupRepository) GetAll() ([]Group, error) {
|
||||
|
||||
Reference in New Issue
Block a user