func InsertScannerList(db *sqlx.DB, hash claircore.Digest, n int) error {
	for i := 0; i < n; i++ {
		_, err := db.Exec(
			`INSERT INTO scannerlist
			 (manifest_id, scanner_id)
			 VALUES ($1, $2)`,
			hash,
			i,
		)
		if err != nil {
			return err
		}
	}
	return nil
}
// InsertScannerList is to be used with `claircore.test.GenUniqueScanners()`. Inserts
// a ScannerList record for scanner IDs 0...n associated with provided manifest hash
InsertScannerList is to be used with `claircore.test.GenUniqueScanners()`. Inserts
a ScannerList record for scanner IDs 0...n associated with provided manifest hash
// InsertScannerList is to be used with ` claircore . test . GenUniqueScanners () ` . Inserts // a ScannerList record for scanner IDs 0 ... n associated with provided manifest hash
func InsertScannerList(db *sqlx.DB, hash claircore.Digest, n int) error {
	for i := 0; i < n; i++ {
		_, err := db.Exec(
			`INSERT INTO scannerlist
			 (manifest_id, scanner_id)
			 VALUES ($1, $2)`,
			hash,
			i,
		)
		if err != nil {
			return err
		}
	}
	return nil
}
func InsertScannerList ( db * sqlx . DB , hash claircore . Digest , n int ) error { for i := 0 ; i < n ; i ++ { _ , err := db . Exec ( `INSERT INTO scannerlist
			 (manifest_id, scanner_id)
			 VALUES ($1, $2)` , hash , i , ) if err != nil { return err } } return nil }
InsertScannerList is to be used with `claircore.test.GenUniqueScanners()`.
InsertScannerList is to be used with ` claircore . test . GenUniqueScanners () ` .