Closed PiotrZakrzewski-instruqt closed 11 months ago
When linting methods calls to sqlx.DB in form of
func (r *PostgresRepository) Method() { stmt, err := r.db.Prepare("SELECT * FROM TABLE") }
do not trigger sqlclosecheck. But the following does:
func (r *PostgresRepository) Method() { db := r.db stmt, err := db.Prepare("SELECT * FROM TABLE") }
my bad. It was not flagged because the stmnt was used downstream
When linting methods calls to sqlx.DB in form of
do not trigger sqlclosecheck. But the following does: