Returns the Column with the given name.

@param string $columnName The column name.

@return Column

@throws SchemaException If the column does not exist.
515833
public function getColumn($columnName)
    {
        $columnName = $this->normalizeIdentifier($columnName);
        if (! $this->hasColumn($columnName)) {
            throw SchemaException::columnDoesNotExist($columnName, $this->_name);
        }

        return $this->_columns[$columnName];
    }
960923
public static function getPdoParamName($columnName)
    {
        if (isset(self::$pdoParamAliasesUsed[$columnName])) {
            self::$pdoParamAliasesUsed[$columnName]++;

            return $columnName . self::$pdoParamAliasesUsed[$columnName];
        } else {
            self::$pdoParamAliasesUsed[$columnName] = 1;

            return $columnName;
        }
    }
801562
public static function getCurrent($columnName = '')
    {
        if ($columnName) {
            if (isset(self::$currentMenuLink->$columnName)) {
                return self::$currentMenuLink->$columnName;
            }
            return;
        }
        return self::$currentMenuLink;
    }
777821
protected function customisesColumnValue($columnName)
    {
        $methodName = camel_case('laratables_'.$columnName);

        if (method_exists($this->class, $methodName)) {
            return $methodName;
        }

        return false;
    }
1154562
protected function _addColumn(Column $column)
    {
        $columnName = $column->getName();
        $columnName = $this->normalizeIdentifier($columnName);

        if (isset($this->_columns[$columnName])) {
            throw SchemaException::columnAlreadyExists($this->getName(), $columnName);
        }

        $this->_columns[$columnName] = $column;
    }
892550
protected function getColumnCreateId($schema, $table, $columnName)
    {
        $result = $this->getColumnCreate($schema, $table, $columnName);
        $output = [];
        $output[] = sprintf("%sif (\$this->table('%s')->hasColumn('%s')) {", $this->ind2, $result[0], $result[1]);
        $output[] = sprintf("%s\$this->table(\"%s\")->changeColumn('%s', '%s', %s)->update();", $this->ind3, $result[0],
            $result[1], $result[2], $result[3]);
        $output[] = sprintf("%s} else {", $this->ind2);
        $output[] = sprintf("%s\$this->table(\"%s\")->addColumn('%s', '%s', %s)->update();", $this->ind3, $result[0],
            $result[1], $result[2], $result[3]);
        $output[] = sprintf("%s}", $this->ind2);

        return implode($this->nl, $output);
    }
283369
private function getColumnFromName($name)
    {
        foreach ($this->columnConfiguration as $i => $col) {
            if ($col->getName() == $name) {
                return $col;
            }
        }

        // This exception should never happen. If it does, something is
        // wrong w/ the relationship between searchable columns and the
        // configuration.
        throw new DatatableException("A requested column was not found in the columnConfiguration.");
    }
1201202
public static function getSchema($schemaName)
    {
        if (!isset(self::$schemas[$schemaName])) {
            if (!isset(self::$schemaClasses[$schemaName])) {
                throw new SchemaNotFoundException($schemaName);
            }

            $schemaClass = self::$schemaClasses[$schemaName];
            $schema = new $schemaClass();

            if (!($schema instanceof SolutionSchema)) {
                throw new SchemaRegistrationException($schemaName, $schemaClass);
            }

            self::$schemas[$schemaName] = $schema;

            $schema->defineRelationships();
        }

        return self::$schemas[$schemaName];
    }
1163271
public function orIs(string $columnName)
    {
        $this->addCondition('OR', $this->dialect()->quoteName($columnName) . ' = 1');

        return $this;
    }
345943
public function getForeignKey($constraintName)
    {
        $constraintName = $this->normalizeIdentifier($constraintName);
        if (! $this->hasForeignKey($constraintName)) {
            throw SchemaException::foreignKeyDoesNotExist($constraintName, $this->_name);
        }

        return $this->_fkConstraints[$constraintName];
    }
1305076
public function bigIncrements($columnName)
    {
        $column = $this->bigInteger($columnName, true, true);
        $this->primary($columnName);

        return $column;
    }
402018
public function getSQLColumnAlias($columnName)
    {
        return $this->quoteStrategy->getColumnAlias($columnName, $this->aliasCounter++, $this->platform);
    }
1136023
public function getTable($tableName)
    {
        $table = new Table($tableName);

        $columns = $this->_getColumns($tableName);
        foreach ($columns as $col) {
            $table->addColumn($this->_createColumn($col));
        }

        $constraints = $this->_getConstraints($tableName);
        foreach ($constraints as $constraint) {
            $object = $this->_createConstraint($constraint);
            if ($object) {
                $table->addConstraint($object);
            }
        }

        return $table;
    }
1321993
protected static function checkColumn($tableName, $columnName, $con=NULL)
    {
        $connection = self::checkConnection($con);

            $result = $connection->prepare("SELECT {$columnName} FROM {$tableName}");
            $result->execute();
            if (! $result->columnCount())
            {
                throw new ColumnNotExistExeption();
            }
            return $columnName;
    }
435496
public function Columns($Name = '') {
      if (strlen($Name) > 0) {
         if (array_key_exists($Name, $this->_Columns))
            return $this->_Columns[$Name];
         else {
            foreach($this->_Columns as $ColName => $Def) {
               if (strcasecmp($Name, $ColName) == 0)
                  return $Def;
            }
            return NULL;
         }
      }
		return $this->_Columns;
	}
898506
public function to(string $columnName) : ColumnTypeDefiner
    {
        return new ColumnTypeDefiner(
                $this->definition,
                $this->callback,
                $columnName
        );
    }
347116
public function increments($columnName)
    {
        $column = $this->integer($columnName, true, true);
        $this->primary($columnName);

        return $column;
    }