feat: custom query's #6

Merged
SoXX merged 3 commits from dev/issue-5 into main 2024-07-27 18:06:57 +00:00
Showing only changes of commit d364078acc - Show all commits

View File

@ -16,7 +16,7 @@ func ExecuteRawStatement(ctx context.Context, db *gorm.DB, query string, args ..
return nil, errors.New("arguments can not be nil") return nil, errors.New("arguments can not be nil")
} }
result, err := db.WithContext(ctx).Raw(query, args...).Rows() result, err := db.WithContext(ctx).Exec(query, args...).Rows()
if err != nil { if err != nil {
return nil, err return nil, err
} }