protected function getTableFields()
    {   
        $connection = Connection::connect();

        $driver = getenv('P_DRIVER');

        if ($driver == 'pgsql') {
            $describe = '\d ';
        }
        $describe = 'describe ';
        
        $q = $connection->prepare($describe.$this->getTableName($this->className));
        $q->execute();
        
        return $q->fetchAll(PDO::FETCH_COLUMN);        
    }
protected function getTableFields()
    {   
        $connection = Connection::connect();

        $driver = getenv('P_DRIVER');

        if ($driver == 'pgsql') {
            $describe = '\d ';
        }
        $describe = 'describe ';
        
        $q = $connection->prepare($describe.$this->getTableName($this->className));
        $q->execute();
        
        return $q->fetchAll(PDO::FETCH_COLUMN);        
    }
protected function getTableFields ( ) { $ connection = Connection :: connect ( ) ; $ driver = getenv ( 'P_DRIVER' ) ; if ( $ driver == 'pgsql' ) { $ describe = '\d ' ; } $ describe = 'describe ' ; $ q = $ connection -> prepare ( $ describe . $ this -> getTableName ( $ this -> className ) ) ; $ q -> execute ( ) ; return $ q -> fetchAll ( PDO :: FETCH_COLUMN ) ; }
Get all the column names in a table

@return array
Get all the column names in a table