Get the Doctrine column instance for a column change.

@param Table $table
@param Fluent $fluent
@return Column
358738
protected function getDoctrineColumnForChange( Table $table, Fluent $fluent )
	{
		return $table->changeColumn( $fluent['name'], $this->getDoctrineColumnChangeOptions( $fluent ) )->getColumn( $fluent['name'] );
	}
512297
protected function tableColumn($column)
    {
        if (is_null($this->table)) {
            $this->setTable();
        }

        return new Column($this->context, $this->table, $column);
    }
685250
public function from($table, ...$tables)
    {
        $instance = $this->fromStrategyInstance();

        $instance->fromStrategy()->from($table, ...$tables);

        return $instance;
    }
1285772
public function update(...$table) {
        $sql = new UpdateSQL($table);
        $sql->setDialect($this->dialect);

        return $sql;
    }
277772
public function update($table) {
        $obj = new UpdateRule(new Context($this->connection));
        return $obj->update($table);
    }
847734
public function compileBoolean(Fluent $fluent)
    {
        $map = [
            'type'       => 'boolean',
            'boost'      => $fluent->boost,
            'doc_values' => $fluent->doc_values,
            'index'      => $fluent->index,
            'null_value' => $fluent->null_value,
            'store'      => $fluent->store,
        ];

        return $this->formatMap($map);
    }
81241
protected function getCreateColumnCommentSQLQuery(Column $column, $table)
    {
        return 'COMMENT ON COLUMN '.$table.'.'.$column->getName().' IS '.$this->getColumnCommentSQLDeclaration($column);
    }
133460
def _get_column_for_change(self, table, fluent):
        
        return table.change_column(
            fluent.name, self._get_column_change_options(fluent)
        ).get_column(fluent.name)
996321
public function from($table, $columns = null)
    {
        $this->table($table);
        if( !empty($columns) ) {
            $this->columns($columns);
        }
        return $this;
    }
348045
public static function dropColumn($table, $column)
    {
        $query = static::getQuery();

        return static::build(
            'ALTER TABLE',
            $query->quoteName($table),
            'DROP',
            'COLUMN',
            $query->quoteName($column)
        );
    }
1276926
protected function generatableColumn($type, Fluent $column)
    {
        if (! $column->autoIncrement && is_null($column->generatedAs)) {
            return $type;
        }

        if ($column->autoIncrement && is_null($column->generatedAs)) {
            return with([
                'integer' => 'serial',
                'bigint' => 'bigserial',
                'smallint' => 'smallserial',
            ])[$type];
        }

        $options = '';

        if (! is_bool($column->generatedAs) && ! empty($column->generatedAs)) {
            $options = sprintf(' (%s)', $column->generatedAs);
        }

        return sprintf(
            '%s generated %s as identity%s',
            $type,
            $column->always ? 'always' : 'by default',
            $options
        );
    }
1319477
protected function typeEnum(Fluent $column)
    {
        return sprintf(
            'nvarchar(255) check ("%s" in (%s))',
            $column->name,
            $this->quoteString($column->allowed)
        );
    }
588843
public function table($table)
    {
        $processor = $this->getPostProcessor();
        $grammar = $this->getQueryGrammar();

        $query = new CassandraBuilder($this, $grammar, $processor);

        return $query->from($table);
    }
40974
def _get_column_change_options(self, fluent):
        
        options = {
            "name": fluent.name,
            "type": self._get_dbal_column_type(fluent.type),
            "default": fluent.get("default"),
        }

        if fluent.type in ["string"]:
            options["length"] = fluent.length

        return options
185122
protected function key(Table $table, Fluent $command, $type)
		{
			$keys = $this->columnize($command->columns);
			$name = $command->name;
			return 'ALTER TABLE ' . $this->wrap($table) . " ADD {$type} {$name}({$keys})";
		}
124676
public function getModelInstanceIfId($instance, $table)
    {
        if ($instance instanceof Model) {
            return $instance;
        }

        if ($instance instanceof Collection) {
            return $instance->current();
        }

        return $this->findModelInstanceByPk($table, $instance);
    }
264567
public function getPrimaryFields(Table $table)
    {
        return $table->getFields()->filter(function (Field $field) {
            return $field->isPrimaryKey();
        });
    }