From a0ad500a4318ed6936730f0202025655ec720d80 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Wed, 22 Apr 2026 10:55:17 +0200 Subject: [PATCH] refactor: replace interface{} with any in db --- internal/db/db.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/db/db.go b/internal/db/db.go index 85d4b8c..37a578c 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -10,10 +10,10 @@ import ( ) type DBTX interface { - ExecContext(context.Context, string, ...interface{}) (sql.Result, error) + ExecContext(context.Context, string, ...any) (sql.Result, error) PrepareContext(context.Context, string) (*sql.Stmt, error) - QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error) - QueryRowContext(context.Context, string, ...interface{}) *sql.Row + QueryContext(context.Context, string, ...any) (*sql.Rows, error) + QueryRowContext(context.Context, string, ...any) *sql.Row } func New(db DBTX) *Queries {