feat: custom query's #6
@ -16,7 +16,7 @@ func ExecuteRawStatement(ctx context.Context, db *gorm.DB, query string, args ..
|
||||
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 {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user