src/Codeception/Module/WPDb.php
public function grabAllFromDatabase($table, $column, $criteria)
    {
        $query = $this->_getDriver()->select($column, $table, $criteria);

        $sth = $this->_getDriver()->executeQuery($query, array_values($criteria));

        return $sth->fetchAll(PDO::FETCH_ASSOC);
    }
public function grabAllFromDatabase($table, $column, $criteria)
    {
        $query = $this->_getDriver()->select($column, $table, $criteria);

        $sth = $this->_getDriver()->executeQuery($query, array_values($criteria));

        return $sth->fetchAll(PDO::FETCH_ASSOC);
    }
public function grabAllFromDatabase ( $ table , $ column , $ criteria ) { $ query = $ this -> _getDriver ( ) -> select ( $ column , $ table , $ criteria ) ; $ sth = $ this -> _getDriver ( ) -> executeQuery ( $ query , array_values ( $ criteria ) ) ; return $ sth -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
Returns all entries matching a criteria from the database.

@example
```php
// Asserts a user does not exist in the database.
$I->dontSeeUserInDatabase(['user_login' => 'luca']);
// Asserts a user with email and login is not in the database.
$books = $I->grabPrefixedTableNameFor('books');
$I->grabAllFromDatabase($books, 'title', ['genre' => 'fiction']);
```

@param string $table The table to grab the values from.
@param string $column The column to fetch.
@param array  $criteria The search criteria.

@return array An array of results.

@throws \Exception If the criteria is inconsistent.
Returns all entries matching a criteria from the database .