lib/adbc_result.ex
defmodule Adbc.Result do
@moduledoc """
A struct returned as result from queries.
It has two fields:
* `:data` - a map of field names to a list of values
* `:num_rows` - the number of rows returned, if returned
by the database
"""
defstruct [:num_rows, :data]
@type t :: %Adbc.Result{
num_rows: non_neg_integer() | nil,
data: %{optional(binary) => list(term)}
}
end