public function fetchAllKeyPair(string $sql, array $params = [], array $types = []): array
    {
        $stmt = $this->conn->executeQuery($sql, $params, $types);

        return $stmt->fetchAll(PDO::FETCH_KEY_PAIR);
    }
public function fetchAllKeyPair(string $sql, array $params = [], array $types = []): array
    {
        $stmt = $this->conn->executeQuery($sql, $params, $types);

        return $stmt->fetchAll(PDO::FETCH_KEY_PAIR);
    }
public function fetchAllKeyPair ( string $ sql , array $ params = [ ] , array $ types = [ ] ) : array { $ stmt = $ this -> conn -> executeQuery ( $ sql , $ params , $ types ) ; return $ stmt -> fetchAll ( PDO :: FETCH_KEY_PAIR ) ; }
fetch first two columns as an associative array from all rows

@return array [key1 => value1, key2 => value2, ...]
fetch first two columns as an associative array from all rows