Glific v0.3.1 Glific.Settings.Language View Source

Ecto schema and minimal interface for the languages table

Link to this section Summary

Functions

Standard changeset pattern we use for all datat types

Delete changeset pattern we use for all data types

Link to this section Types

Specs

t() :: %Glific.Settings.Language{
  __meta__: Ecto.Schema.Metadata.t(),
  description: String.t() | nil,
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
  is_active: boolean(),
  label: String.t() | nil,
  label_locale: String.t() | nil,
  locale: String.t() | nil,
  updated_at: :utc_datetime | nil
}

Link to this section Functions

Link to this function

changeset(language, attrs)

View Source

Specs

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

Standard changeset pattern we use for all datat types

Link to this function

delete_changeset(language)

View Source

Specs

delete_changeset(t()) :: Ecto.Changeset.t()

Delete changeset pattern we use for all data types