src/Sql/Query.php
public function select(
        $table,
        $fields = [],
        WhereStatementInterface $where = null,
        $fetchStyle = PDO::FETCH_ASSOC,
        $fetchFlat = false,
        $defaultValue = []
    ) {
        return new Select($table, $fields, $where, $fetchStyle, $fetchFlat, $defaultValue);
    }
public function select(
        $table,
        $fields = [],
        WhereStatementInterface $where = null,
        $fetchStyle = PDO::FETCH_ASSOC,
        $fetchFlat = false,
        $defaultValue = []
    ) {
        return new Select($table, $fields, $where, $fetchStyle, $fetchFlat, $defaultValue);
    }
public function select ( $ table , $ fields = [ ] , WhereStatementInterface $ where = null , $ fetchStyle = PDO :: FETCH_ASSOC , $ fetchFlat = false , $ defaultValue = [ ] ) { return new Select ( $ table , $ fields , $ where , $ fetchStyle , $ fetchFlat , $ defaultValue ) ; }
retrieves data from a PDO connected resource
@param string $table name of the table that houses the data
@param array $fields optional default value: empty array - defines which
fields are returned if no fields defined a star will be used
@param null|WhereStatementInterface $where optional default value: null -
object used to limit the returned results
@param integer $fetchStyle optional default value: PDO::FETCH_ASSOC -
sets how the PDO statement will return records
@param boolean $fetchFlat optional default value: false - true will
return one record, false will return all records
@param mixed $defaultValue optional default value: empty array -
value to be returned on query failure
@return Select the select object responsible for retrieving records
@since v1.0.0
retrieves data from a PDO connected resource