Gets the named column metadata.

@param string $name column name
@param bool   $use_alias

@return ColumnSchema metadata of the named column. Null if the named column does not exist.
503154
public function getColumn($name, $use_alias = false)
    {
        if ($use_alias) {
            foreach ($this->columns as $column) {
                if (0 === strcasecmp($name, $column->getName($use_alias))) {
                    return $column;
                }
            }
        } else {
            $key = strtolower($name);
            if (isset($this->columns[$key])) {
                return $this->columns[$key];
            }
        }

        return null;
    }
655399
def _get_column_by_db_name(cls, name):
        
        return cls._columns.get(cls._db_map.get(name, name))
364797
public function getField($name)
    {
        if (array_key_exists($name, $this->fields)) {
            return $this->fields[$name];
        }
        else if (array_key_exists($name, $this->fieldAliases)) {
            $name = $this->fieldAliases[$name];
            return $this->fields[$name];
        }
        return null;
    }
795264
public function getColumnInstance($name)
    {
        if (
            isset($this->metadata[Metadata::FIELD_INSTANCES][$name])
            && $this->metadata[Metadata::FIELD_INSTANCES][$name] instanceof Field
        ) {
            return $this->metadata[Metadata::FIELD_INSTANCES][$name];
        }
        
        throw new NotFoundException('Cannot found column definition for ":name"', ['name' => $name]);
    }
1042775
public function getColumn($name)
    {

        // check all the columns
        foreach ($this->columns as $index => $column) {
            if ($name == $index) {
                return $column;
            }

            // recursivity
            if (method_exists($column, 'hasColumn')) {
               if ($column->hasColumn($name)) {
                   return $column->getColumn($name);
               }
            }
        }

        return null;
    }
165916
function getColumnValue($column_name)
    {
        return isset($this->last_row[$column_name]) ? $this->last_row[$column_name] : null;
    }
29070
public static function getSchema($name) {
        if (!isset(self::$schemas[$name])) {
            try {
                self::$schemas[$name] = Schema::i($name);
            } catch (Exception $e) {
                return false;
            }
        }

        return self::$schemas[$name];
    }
282203
public function getColumn($name, $need = TRUE)
    {
        return $this->hasColumns()
            ? $this->getComponent(Column::ID)->getComponent(Helpers::formatColumnName($name), $need)
            : NULL;
    }
723397
protected function loadTable($name)
	{
		$table=new CMssqlTableSchema;
		$this->resolveTableNames($table,$name);
		//if (!in_array($table->name, $this->tableNames)) return null;
		$table->primaryKey=$this->findPrimaryKey($table);
		$table->foreignKeys=$this->findForeignKeys($table);
		if($this->findColumns($table))
		{
			return $table;
		}
		else
			return null;
	}
141402
public static function getCompleteUseStatement(string $useName, string $useAlias = null): string
    {
        $use = $useName;
        if (null !== $useAlias && $useAlias !== '') {
            $use .= ' as '.$useAlias;
        }

        return $use;
    }
73540
protected function loadTable($name)
	{
		$table=new CCubridTableSchema;
		$this->resolveTableNames($table,$name);

		if($this->findColumns($table))
		{
			$this->findPrimaryKeys($table);
			$this->findConstraints($table);
			return $table;
		}
		else
			return null;
	}
174337
public static function getClassMetadataFromJoinAlias(string $alias, QueryBuilder $queryBuilder, ManagerRegistry $managerRegistry): ClassMetadata
    {
        @trigger_error(sprintf('The use of "%s::getClassMetadataFromJoinAlias()" is deprecated since 2.4 and will be removed in 3.0. Use "%s::getEntityClassByAlias()" instead.', __CLASS__, QueryBuilderHelper::class), E_USER_DEPRECATED);

        $entityClass = QueryBuilderHelper::getEntityClassByAlias($alias, $queryBuilder, $managerRegistry);

        return $managerRegistry
            ->getManagerForClass($entityClass)
            ->getClassMetadata($entityClass);
    }
157490
def do_get_aliases(name):
  
  metric_schemas = MetricSchemas()
  aliases = metric_schemas.get_aliases(name)
  for alias in aliases:
    do_print(alias)
972573
public function getFieldsWithTableAlias($table_alias = null)
    {
        $vals = [];
        $replace = $table_alias === null ? '' : sprintf("%s.", $table_alias);

        foreach ($this->fields as $name => $definition) {
            $vals[$name] = $this->replaceToken($this->fields[$name], $replace);
        }

        return $vals;
    }
385196
public function getColumnMeta($name = '')
    {

        $retval = array();
        $field = NULL;
        while ($field = mysqli_fetch_field($this->getResultId())) {
            $f = new stdClass();
            $f->name = $field->name;
            $f->type = $field->type;
            $f->default = $field->def;
            $f->maxLength = $field->max_length;
            $f->primaryKey = $field->primary_key;

            $retval[] = $f;
        }

        return $retval;
    }
180233
protected static function aliasMapParse(string $name): string
    {
        $config = ServiceFactory::getInstance(AnnotationConfigServiceImpl::class);
        $aliasArr = $config->getConfig()['alias'] ?? [];
        return array_key_exists($name, $aliasArr) ? $aliasArr[$name] : $name;
    }
331871
protected function getMeta(string $name = null): array
    {
        return self::query($this->db->createDesc($name ? $name : $this->tableName));
    }