# `Adbc.IngestResult`
[🔗](https://github.com/elixir-explorer/adbc/blob/v0.12.1/lib/adbc/result.ex#L89)

Represents the result of an `Adbc.Connection.ingest/2` operation.

The data is stored in a temporary table that is automatically
dropped when this struct is garbage collected.

It contains:

  * `:ref` - internal reference that controls the table lifetime (do not use directly)
  * `:table` - the name of the temporary table
  * `:num_rows` - the number of rows ingested

> ### Garbage collection {: .warning}
>
> You must always hold a whole reference to the struct,
> and not individual fields. For example, if you only
> keep a reference to `result.table`, then the struct will
> be GCed, and so would be the table.

# `t`

```elixir
@type t() :: %Adbc.IngestResult{
  num_rows: non_neg_integer(),
  ref: reference(),
  table: String.t()
}
```

---

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