Parameter
DearDiary.get_parameter — Functionget_parameter(id::Integer)::Optional{Parameter}Get a Parameter by id.
Arguments
id::Integer: The id of the parameter to query.
Returns
A Parameter object. If the record does not exist, return nothing.
DearDiary.get_parameters — Functionget_parameters(iteration_id::Integer)::Array{Parameter, 1}Get all Parameter for a given iteration.
Arguments
iteration_id::Integer: The id of the iteration to query.
Returns
An array of Parameter objects.
DearDiary.create_parameter — Functioncreate_parameter(iteration_id::Integer, key::AbstractString, value::AbstractString)::Tuple{Optional{<:Int64},UpsertResult}Arguments
iteration_id::Integer: The id of the iteration to create the parameter for.key::AbstractString: The key of the parameter.value::AbstractString: The value of the parameter.
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.
DearDiary.update_parameter — Functionupdate_parameter(id::Integer, key::Optional{AbstractString}, value::Optional{AbstractString})::UpsertResultUpdate a Parameter record.
Arguments
id::Integer: The id of the parameter to update.key::Optional{AbstractString}: The new key for the parameter.value::Optional{AbstractString}: The new value for the parameter.
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.
DearDiary.delete_parameter — Functiondelete_parameter(id::Integer)::BoolDelete a Parameter record.
Arguments
id::Integer: The id of the parameter to delete.
Returns
true if the record was successfully deleted, false otherwise.