on main help sign in
chore(lint): modernize interfaces in the db package
6920cf1Christian Rocha
internal/db/db.go+3−3
@@ -11,10 +11,10 @@ import (
11)
11)
12
12
13type DBTX interface {
13type DBTX interface {
14− ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
14+ ExecContext(context.Context, string, ...any) (sql.Result, error)
15 PrepareContext(context.Context, string) (*sql.Stmt, error)
15 PrepareContext(context.Context, string) (*sql.Stmt, error)
16− QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
16+ QueryContext(context.Context, string, ...any) (*sql.Rows, error)
17− QueryRowContext(context.Context, string, ...interface{}) *sql.Row
17+ QueryRowContext(context.Context, string, ...any) *sql.Row
18}
18}
19
19
20func New(db DBTX) *Queries {
20func New(db DBTX) *Queries {