ash_cubdb/lib/ash_cub_db/info.ex
James Harton 74d878b70e
All checks were successful
continuous-integration/drone/push Build is passing
feat: create and read works.
2023-09-29 20:30:42 +13:00

16 lines
482 B
Elixir

defmodule AshCubDB.Info do
@moduledoc """
Auto-generated introspection for the AshCubDB DSL.
"""
use Spark.InfoGenerator, sections: [:cubdb], extension: AshCubDB.DataLayer
alias Spark.Dsl.Extension
@doc """
Retrieve the cached field layout for the resource.
"""
@spec field_layout(Ash.Resource.t() | Spark.Dsl.t()) :: nil | {tuple, tuple}
def field_layout(resource_or_dsl_state),
do: Extension.get_persisted(resource_or_dsl_state, :cubdb_field_layout)
end