src/Koldy/Db/Query/Select.php
public function fetchAllOfGenerator(string $field): Generator
    {
        foreach ($this->fetchAllGenerator() as $index => $record) {
            yield $index => $record[$field] ?? null;
        }
    }
public function fetchAllOfGenerator(string $field): Generator
    {
        foreach ($this->fetchAllGenerator() as $index => $record) {
            yield $index => $record[$field] ?? null;
        }
    }
public function fetchAllOfGenerator ( string $ field ) : Generator { foreach ( $ this -> fetchAllGenerator ( ) as $ index => $ record ) { yield $ index => $ record [ $ field ] ?? null ; } }
Fetch all records and return Generator of values from each row from given field name.

@param string $field

@return Generator
@throws Exception
@throws \Koldy\Exception
Fetch all records and return Generator of values from each row from given field name .