Adbc.IngestResult (adbc v0.12.0)

Copy Markdown View Source

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

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.

Summary

Types

t()

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