Lightning.Adaptors.Catalogue.Adaptor (Lightning v2.19.0)

View Source

Ecto schema for one row of the adaptors table, unique on [:name, :source]. Versions live on Lightning.Adaptors.Catalogue.AdaptorVersion.

Summary

Functions

Builds the changeset for inserting or fully rewriting an adaptor row.

Types

t()

@type t() :: %Lightning.Adaptors.Catalogue.Adaptor{
  __meta__: term(),
  checked_at: DateTime.t() | nil,
  deprecated: boolean(),
  description: String.t() | nil,
  homepage: String.t() | nil,
  icon_rectangle_etag: String.t() | nil,
  icon_rectangle_ext: String.t() | nil,
  icon_rectangle_sha256: binary() | nil,
  icon_square_etag: String.t() | nil,
  icon_square_ext: String.t() | nil,
  icon_square_sha256: binary() | nil,
  id: Ecto.UUID.t() | nil,
  inserted_at: DateTime.t() | nil,
  latest_version: String.t() | nil,
  license: String.t() | nil,
  name: String.t() | nil,
  repository: String.t() | nil,
  schema_data: String.t() | nil,
  schema_sha256: String.t() | nil,
  source: :npm | :local | nil,
  updated_at: DateTime.t() | nil
}

Functions

changeset(struct, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Builds the changeset for inserting or fully rewriting an adaptor row.