Refactor code to use 'any' type and improve context handling
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -55,7 +55,7 @@ type rebindDBTX struct {
|
||||
db *sqlx.DB
|
||||
}
|
||||
|
||||
func (r rebindDBTX) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) {
|
||||
func (r rebindDBTX) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error) {
|
||||
return r.db.ExecContext(ctx, rebindQuery(query), args...)
|
||||
}
|
||||
|
||||
@@ -63,11 +63,11 @@ func (r rebindDBTX) PrepareContext(ctx context.Context, query string) (*sql.Stmt
|
||||
return r.db.PrepareContext(ctx, rebindQuery(query))
|
||||
}
|
||||
|
||||
func (r rebindDBTX) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) {
|
||||
func (r rebindDBTX) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error) {
|
||||
return r.db.QueryContext(ctx, rebindQuery(query), args...)
|
||||
}
|
||||
|
||||
func (r rebindDBTX) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row {
|
||||
func (r rebindDBTX) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row {
|
||||
return r.db.QueryRowContext(ctx, rebindQuery(query), args...)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user