Skip to content

Commit

Permalink
feat: move Gorm interface to contracts/database/gorm
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 5, 2023
1 parent 49965b2 commit 3be061b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/gorm/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"gorm.io/gorm/clause"

"github.com/goravel/framework/contracts/config"
gormcontract "github.com/goravel/framework/contracts/database/gorm"
ormcontract "github.com/goravel/framework/contracts/database/orm"
"github.com/goravel/framework/database/gorm/hints"
"github.com/goravel/framework/database/orm"
Expand All @@ -31,7 +32,7 @@ type QueryImpl struct {
withoutEvents bool
}

func NewQueryImpl(ctx context.Context, config config.Config, gorm Gorm) (*QueryImpl, error) {
func NewQueryImpl(ctx context.Context, config config.Config, gorm gormcontract.Gorm) (*QueryImpl, error) {
db, err := gorm.Make()
if err != nil {
return nil, err
Expand Down

0 comments on commit 3be061b

Please sign in to comment.