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/vinovest/sqlx"
|
||||
)
|
||||
|
||||
@@ -19,8 +20,8 @@ type AIRepository struct {
|
||||
func newAiRepository(db *sqlx.DB) AIRepository {
|
||||
return AIRepository{db}
|
||||
}
|
||||
func NewAIRepository(db *laniakea.DatabaseContext) AIRepository {
|
||||
return newAiRepository(db.PostgresSQL)
|
||||
func NewAIRepository(db *database.Context) AIRepository {
|
||||
return newAiRepository(db.Postgres)
|
||||
}
|
||||
|
||||
func (rep AIRepository) GetModel(id string) (AIModel, error) {
|
||||
|
||||
Reference in New Issue
Block a user