protected function getColsList(string $table): array
    {
        $schema = $this->conn->getSchemaManager();
        $tableDetails = $schema->listTableDetails($table);
        // No primary ? Exception !
        if ($tableDetails->hasPrimaryKey() === false) {
            throw new NeuralyzerConfigurationException("Can't work with $table, it has no primary key.");
        }
        $primaryKey = $tableDetails->getPrimaryKey()->getColumns()[0];

        $cols = $schema->listTableColumns($table);
        $colsInfo = [];
        foreach ($cols as $col) {
            // If the col has to be ignored: just leave
            if ($primaryKey === $col->getName() || $this->colIgnored($table, $col->getName())) {
                continue;
            }

            $colsInfo[] = [
                'name' => $col->getName(),
                'type' => strtolower((string) $col->getType()),
                'len' => $col->getLength(),
            ];
        }

        return $colsInfo;
    }
protected function getColsList(string $table): array
    {
        $schema = $this->conn->getSchemaManager();
        $tableDetails = $schema->listTableDetails($table);
        // No primary ? Exception !
        if ($tableDetails->hasPrimaryKey() === false) {
            throw new NeuralyzerConfigurationException("Can't work with $table, it has no primary key.");
        }
        $primaryKey = $tableDetails->getPrimaryKey()->getColumns()[0];

        $cols = $schema->listTableColumns($table);
        $colsInfo = [];
        foreach ($cols as $col) {
            // If the col has to be ignored: just leave
            if ($primaryKey === $col->getName() || $this->colIgnored($table, $col->getName())) {
                continue;
            }

            $colsInfo[] = [
                'name' => $col->getName(),
                'type' => strtolower((string) $col->getType()),
                'len' => $col->getLength(),
            ];
        }

        return $colsInfo;
    }
protected function getColsList ( string $ table ) : array { $ schema = $ this -> conn -> getSchemaManager ( ) ; $ tableDetails = $ schema -> listTableDetails ( $ table ) ; // No primary ? Exception ! if ( $ tableDetails -> hasPrimaryKey ( ) === false ) { throw new NeuralyzerConfigurationException ( "Can't work with $table, it has no primary key." ) ; } $ primaryKey = $ tableDetails -> getPrimaryKey ( ) -> getColumns ( ) [ 0 ] ; $ cols = $ schema -> listTableColumns ( $ table ) ; $ colsInfo = [ ] ; foreach ( $ cols as $ col ) { // If the col has to be ignored: just leave if ( $ primaryKey === $ col -> getName ( ) || $ this -> colIgnored ( $ table , $ col -> getName ( ) ) ) { continue ; } $ colsInfo [ ] = [ 'name' => $ col -> getName ( ) , 'type' => strtolower ( ( string ) $ col -> getType ( ) ) , 'len' => $ col -> getLength ( ) , ] ; } return $ colsInfo ; }
Get the cols lists from a connection + table

@param  string $table
@return array
@throws NeuralyzerConfigurationException
Get the cols lists from a connection + table