View Source Exshome.Settings.Schema (Exshome - Elixir Smart Home v0.1.7)

Schema for storing application settings.

Link to this section Summary

Link to this section Types

@type t() :: %Exshome.Settings.Schema{
  __meta__: term(),
  data: map(),
  inserted_at: term(),
  name: String.t(),
  updated_at: term(),
  version: integer()
}

Link to this section Functions

Link to this function

get_or_create(name, default_data)

View Source
@spec get_or_create(name :: String.t(), default_data :: map()) :: map()
Link to this function

update!(name, partial_data)

View Source
@spec update!(name :: String.t(), (map() -> map()) | map()) ::
  map() | {:error, atom()}