View Source Memorex.Decks (Memorex v0.2.4)

Functions for interacting with Memorex.Domain.Decks.

Link to this section Summary

Functions

Finds an existing deck by name, or else creates it.

Updates the config for a Memorex.Domain.Deck from the values contained in a TOML deck config file. Note that only the values from the config file are stored (which might be a subset of the available values contained in Memorex.Scheduler.Config), and they are stored in the database as a Map, NOT as a Memorex.Scheduler.Config struct.

Link to this section Functions

@spec find_or_create!(String.t()) :: Memorex.Domain.Deck.t()

Finds an existing deck by name, or else creates it.

Link to this function

update_config(deck, config)

View Source
@spec update_config(Memorex.Domain.Deck.t(), map()) :: Memorex.Domain.Deck.t()

Updates the config for a Memorex.Domain.Deck from the values contained in a TOML deck config file. Note that only the values from the config file are stored (which might be a subset of the available values contained in Memorex.Scheduler.Config), and they are stored in the database as a Map, NOT as a Memorex.Scheduler.Config struct.