# `Ch.Result`
[🔗](https://github.com/plausible/ch/blob/v0.8.2/lib/ch/result.ex#L1)

Result struct returned from any successful query.

# `t`

```elixir
@type t() :: %Ch.Result{
  columns: [String.t()] | nil,
  command: Ch.Query.command() | nil,
  data: iodata(),
  headers: Mint.Types.headers(),
  num_rows: non_neg_integer() | nil,
  rows: [[term()]] | iodata() | nil
}
```

The Result struct.

## Fields

  * `:command` - An atom of the query command, for example: `:select`, `:insert`
  * `:columns` - A list of column names
  * `:rows` - A list of lists (each inner list corresponding to a row, each element in the inner list corresponds to a column)
  * `:num_rows` - The number of fetched or affected rows
  * `:headers` - The HTTP response headers
  * `:data` - The raw iodata from the response

---

*Consult [api-reference.md](api-reference.md) for complete listing*
