src/Drivers/AbstractDriver.php
public function driverQuery($query, $filteredIndex=TRUE): ?array
	{
		// Call the appropriate method, if it exists
		if (\is_string($query) && method_exists($this->sql, $query))
		{
			$query = $this->getSql()->$query();
		}

		// Return if the values are returned instead of a query,
		// or if the query doesn't apply to the driver
		if ( ! \is_string($query))
		{
			return $query;
		}

		// Run the query!
		$res = $this->query($query);

		$flag = $filteredIndex ? PDO::FETCH_NUM : PDO::FETCH_ASSOC;
		$all = $res->fetchAll($flag);

		return $filteredIndex ? \dbFilter($all, 0) : $all;
	}
public function driverQuery($query, $filteredIndex=TRUE): ?array
	{
		// Call the appropriate method, if it exists
		if (\is_string($query) && method_exists($this->sql, $query))
		{
			$query = $this->getSql()->$query();
		}

		// Return if the values are returned instead of a query,
		// or if the query doesn't apply to the driver
		if ( ! \is_string($query))
		{
			return $query;
		}

		// Run the query!
		$res = $this->query($query);

		$flag = $filteredIndex ? PDO::FETCH_NUM : PDO::FETCH_ASSOC;
		$all = $res->fetchAll($flag);

		return $filteredIndex ? \dbFilter($all, 0) : $all;
	}
public function driverQuery ( $ query , $ filteredIndex = TRUE ) : ? array { // Call the appropriate method, if it exists if ( \ is_string ( $ query ) && method_exists ( $ this -> sql , $ query ) ) { $ query = $ this -> getSql ( ) -> $ query ( ) ; } // Return if the values are returned instead of a query, // or if the query doesn't apply to the driver if ( ! \ is_string ( $ query ) ) { return $ query ; } // Run the query! $ res = $ this -> query ( $ query ) ; $ flag = $ filteredIndex ? PDO :: FETCH_NUM : PDO :: FETCH_ASSOC ; $ all = $ res -> fetchAll ( $ flag ) ; return $ filteredIndex ? \ dbFilter ( $ all , 0 ) : $ all ; }
Method to simplify retrieving db results for meta-data queries

@param string|array|null $query
@param bool $filteredIndex
@return array|null
Method to simplify retrieving db results for meta - data queries