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

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

        return $stmt->fetchAll(PDO::FETCH_GROUP | PDO::FETCH_UNIQUE);
    }
public function fetchAllAssoc ( string $ sql , array $ params = [ ] , array $ types = [ ] ) : array { $ stmt = $ this -> conn -> executeQuery ( $ sql , $ params , $ types ) ; return $ stmt -> fetchAll ( PDO :: FETCH_GROUP | PDO :: FETCH_UNIQUE ) ; }
fetch all rows result set as an associative array, indexed by first column

@return array [key1 => row1, key2 => row2, ...]
fetch all rows result set as an associative array indexed by first column