Chore: use any rather than interface{} (#74066)

This commit is contained in:
Ryan McKinley
2023-08-30 18:46:47 +03:00
committed by GitHub
parent 3e272d2bda
commit 025b2f3011
525 changed files with 2528 additions and 2528 deletions
+7 -7
View File
@@ -13,16 +13,16 @@ import (
type Builder struct {
// List of FilterWhere/FilterGroupBy/FilterOrderBy/FilterLeftJoin
// to modify the query.
Filters []interface{}
Filters []any
Dialect migrator.Dialect
params []interface{}
params []any
sql bytes.Buffer
}
// ToSQL builds the SQL query and returns it as a string, together with the SQL parameters.
func (b *Builder) ToSQL(limit, page int64) (string, []interface{}) {
b.params = make([]interface{}, 0)
func (b *Builder) ToSQL(limit, page int64) (string, []any) {
b.params = make([]any, 0)
b.sql = bytes.Buffer{}
b.buildSelect()
@@ -45,7 +45,7 @@ func (b *Builder) ToSQL(limit, page int64) (string, []interface{}) {
func (b *Builder) buildSelect() {
var recQuery string
var recQueryParams []interface{}
var recQueryParams []any
b.sql.WriteString(
`SELECT
@@ -90,10 +90,10 @@ func (b *Builder) applyFilters() (ordering string) {
orderJoins := []string{}
wheres := []string{}
whereParams := []interface{}{}
whereParams := []any{}
groups := []string{}
groupParams := []interface{}{}
groupParams := []any{}
orders := []string{}