on main help sign in
chore(lint): modernize interfaces in the db package
commit6920cf1174e9f33b82e5f4a2ac2f93eba6b6ce1c authorChristian Rocha <christian@rocha.is> dateMon 23 Mar 2026, 21:47 (7 months ago) parentec48103
1 file changed+3−3
internal/db/db.go+3−3
internal/db/db.go+3−3
@@ -11,10 +11,10 @@ import (
1111)
1212
1313type DBTX interface {
14− ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
14+ ExecContext(context.Context, string, ...any) (sql.Result, error)
1515 PrepareContext(context.Context, string) (*sql.Stmt, error)
16− QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
17− QueryRowContext(context.Context, string, ...interface{}) *sql.Row
16+ QueryContext(context.Context, string, ...any) (*sql.Rows, error)
17+ QueryRowContext(context.Context, string, ...any) *sql.Row
1818}
1919
2020func New(db DBTX) *Queries {