View Source QuantumStorageEcto.ExecutionDates (Quantum Storage Ecto v0.1.1)
Summary
Functions
Returns the last execution date as stored in the database
Gets the last execution date from the database and updates it with a new value
Functions
@spec get(repo :: module()) :: NaiveDateTime.t() | nil
Returns the last execution date as stored in the database
@spec upsert(value :: NaiveDateTime.t(), repo :: module()) :: {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
Gets the last execution date from the database and updates it with a new value
Parameters
value
- the new execution daterepo
- the repo module that should be use to communicate with the database