public function detailedDefinition($table_name,$which_connection='')
    {
        $which_connection = ($which_connection === '') ? $this->default_db : $which_connection;
        $conn = $this->connections[$which_connection];
        $cols = $conn->MetaColumns($table_name);

        $return = array();
        if (is_array($cols)) {
            foreach($cols as $c) {
                $return[$c->name] = $this->columnToArray($c);
            }

            return $return;
        }

        return false;
    }
public function detailedDefinition($table_name,$which_connection='')
    {
        $which_connection = ($which_connection === '') ? $this->default_db : $which_connection;
        $conn = $this->connections[$which_connection];
        $cols = $conn->MetaColumns($table_name);

        $return = array();
        if (is_array($cols)) {
            foreach($cols as $c) {
                $return[$c->name] = $this->columnToArray($c);
            }

            return $return;
        }

        return false;
    }
public function detailedDefinition ( $ table_name , $ which_connection = '' ) { $ which_connection = ( $ which_connection === '' ) ? $ this -> default_db : $ which_connection ; $ conn = $ this -> connections [ $ which_connection ] ; $ cols = $ conn -> MetaColumns ( $ table_name ) ; $ return = array ( ) ; if ( is_array ( $ cols ) ) { foreach ( $ cols as $ c ) { $ return [ $ c -> name ] = $ this -> columnToArray ( $ c ) ; } return $ return ; } return false ; }
More detailed table definition
@param $table_name The table's name
@param which_connection see method close
@return
- array of column name => info array
- the info array has keys:
type (string)
increment (boolean OR null if unknown)
primary_key (boolean OR null if unknown)
default (value OR null)
More detailed table definition