> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.snowflake.db.ListColumns

- Component: `appmixer.snowflake.db.ListColumns`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.snowflake 1.3.0](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.ListColumns>

List the columns of a table.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Schema (`schema`) | text | Select a schema. |
| Table (`table`) | text | Provide a table name. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Columns (`columns`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.snowflake.db.ListColumns",
  "author": "Harsha Surisetty <harsha@client.io>",
  "description": "List the columns of a table.",
  "private": false,
  "auth": {
    "service": "appmixer:snowflake"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "schema": {
            "type": "string"
          },
          "table": {
            "type": "string"
          }
        },
        "required": [
          "schema",
          "table"
        ]
      },
      "inspector": {
        "inputs": {
          "schema": {
            "type": "text",
            "label": "Schema",
            "index": 1,
            "source": {
              "url": "/component/appmixer/snowflake/db/ListSchemas?outPort=schemas",
              "data": {
                "transform": "./ListSchemas#schemasToSelectArray"
              }
            },
            "tooltip": "Select a schema."
          },
          "table": {
            "type": "text",
            "label": "Table",
            "index": 2,
            "tooltip": "Provide a table name.",
            "source": {
              "url": "/component/appmixer/snowflake/db/ListTables?outPort=tables",
              "data": {
                "messages": {
                  "in/schema": "inputs/in/schema"
                },
                "properties": {
                  "sendWholeArray": true
                },
                "transform": "./ListTables#tablesToSelectArray"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Columns",
          "value": "columns",
          "schema": {
            "type": "array",
            "example": [
              {
                "column_name": "ID",
                "data_type": "NUMBER"
              },
              {
                "column_name": "NAME",
                "data_type": "VARCHAR"
              }
            ]
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
