package sample

import (
	"context"
	"database/sql"
	"fmt"
)

func Lookup(ctx context.Context, db *sql.DB, userID string, email string) error {
	rows, err := db.QueryContext(ctx, "SELECT * FROM users WHERE id = '"+userID+"'")
	if err != nil {
		return err
	}
	_ = rows

	_, err = db.ExecContext(ctx, fmt.Sprintf("SELECT * FROM users WHERE email = '%s'", email))
	return err
}