src/Database/Drivers/Driver.php
public static function read($sql, $mode = self::KEY)
    {
        $vals = [];
        $result = self::query($sql);
        while ($row = $result->fetch($mode)) {
            $vals[] = $row;
        }
        //
        return $vals;
    }
public static function read($sql, $mode = self::KEY)
    {
        $vals = [];
        $result = self::query($sql);
        while ($row = $result->fetch($mode)) {
            $vals[] = $row;
        }
        //
        return $vals;
    }
public static function read ( $ sql , $ mode = self :: KEY ) { $ vals = [ ] ; $ result = self :: query ( $ sql ) ; while ( $ row = $ result -> fetch ( $ mode ) ) { $ vals [ ] = $ row ; } // return $ vals ; }
get data by SQL query.

@param string

@return array
get data by SQL query .