public function get($table = null)
    {
        $schema = $this->generate();

        if ($table !== null) {
            if (isset($schema[$table]) === false) {
                throw new Exception('Unknown table "' . $table . '"');
            }

            $schema = $schema[$table];
        }

        return $schema;
    }
public function get($table = null)
    {
        $schema = $this->generate();

        if ($table !== null) {
            if (isset($schema[$table]) === false) {
                throw new Exception('Unknown table "' . $table . '"');
            }

            $schema = $schema[$table];
        }

        return $schema;
    }
public function get ( $ table = null ) { $ schema = $ this -> generate ( ) ; if ( $ table !== null ) { if ( isset ( $ schema [ $ table ] ) === false ) { throw new Exception ( 'Unknown table "' . $ table . '"' ) ; } $ schema = $ schema [ $ table ] ; } return $ schema ; }
Get schema definition for database or given table

@param string|null $table
@return array
@throws \Rio\Exception
Get schema definition for database or given table