Current section
Files
Jump to
Current section
Files
lib/incant/result.ex
defmodule Incant.Result do
@moduledoc """
Normalized result returned by Incant data sources.
"""
@type t :: %__MODULE__{
rows: [map | struct],
columns: [atom],
total_count: non_neg_integer | nil,
meta: map
}
@derive {Jason.Encoder, only: [:rows, :columns, :total_count, :meta]}
defstruct rows: [], columns: [], total_count: nil, meta: %{}
end