public function getData(string $table, $name = ""){
            
            $file = $this->base . '/' . $table . '.json';
            if(file_exists($file)){
                return json_decode(file_get_contents($file), true);
            }else{
                throw new \NonDB\Exceptions\DriverException('Table Not Exists.', 1002);
            }

        }
public function getData(string $table, $name = ""){
            
            $file = $this->base . '/' . $table . '.json';
            if(file_exists($file)){
                return json_decode(file_get_contents($file), true);
            }else{
                throw new \NonDB\Exceptions\DriverException('Table Not Exists.', 1002);
            }

        }
public function getData ( string $ table , $ name = "" ) { $ file = $ this -> base . '/' . $ table . '.json' ; if ( file_exists ( $ file ) ) { return json_decode ( file_get_contents ( $ file ) , true ) ; } else { throw new \ NonDB \ Exceptions \ DriverException ( 'Table Not Exists.' , 1002 ) ; } }
Get a table's data

@param string $table
@param mixed $name = ""
@throws \NonDB\Exceptions\DriverException

@return mixed
Get a table s data