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"
|
||||
)
|
||||
@@ -22,8 +23,8 @@ type FractionRepository struct {
|
||||
func newFractionRepository(db *sqlx.DB) FractionRepository {
|
||||
return FractionRepository{db}
|
||||
}
|
||||
func NewFractionRepository(db *laniakea.DatabaseContext) FractionRepository {
|
||||
return newFractionRepository(db.PostgresSQL)
|
||||
func NewFractionRepository(db *database.Context) FractionRepository {
|
||||
return newFractionRepository(db.Postgres)
|
||||
}
|
||||
|
||||
func (rep FractionRepository) GetAll() ([]Fraction, error) {
|
||||
|
||||
Reference in New Issue
Block a user