Iteration

DearDiary.get_iterationFunction
get_iteration(id::Integer)::Optional{Iteration}

Get a Iteration by id.

Arguments

  • id::Integer: The id of the iteration to query.

Returns

A Iteration object. If the record does not exist, return nothing.

source
DearDiary.get_iterationsFunction
get_iterations(experiment_id::Integer)::Array{Iteration, 1}

Get all Iteration for a given experiment.

Arguments

  • experiment_id::Integer: The id of the experiment to query.

Returns

An array of Iteration objects.

source
DearDiary.create_iterationFunction
create_iteration(experiment_id::Integer)::Tuple{Optional{<:Int64},UpsertResult}

Arguments

  • experiment_id::Integer: The id of the experiment to create the iteration for.

Returns

An UpsertResult. Created if the record was successfully created, Duplicate if the record already exists, Unprocessable if the record violates a constraint, and Error if an error occurred while creating the record.

source
DearDiary.update_iterationFunction
update_iteration(id::Int, notes::Optional{AbstractString}, end_date::Optional{DateTime})::UpsertResult

Update a Iteration record.

Arguments

  • id::Integer: The id of the iteration to update.
  • notes::Optional{AbstractString}: The new notes for the iteration.
  • end_date::Optional{DateTime}: The new end date for the iteration.

Returns

An UpsertResult. Updated if the record was successfully updated (or no changes were made), Duplicate if the record already exists, Unprocessable if the record violates a constraint, and Error if an error occurred while creating the record.

source
DearDiary.delete_iterationFunction
delete_iteration(id::Integer)::Bool

Delete a Iteration record.

Arguments

  • id::Integer: The id of the iteration to delete. Also deletes all associated Parameter and Metric records.

Returns

true if the record was successfully deleted, false otherwise.

source