Parameter

DearDiary.get_parameterFunction
get_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.

source
DearDiary.get_parametersFunction
get_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.

source
DearDiary.create_parameterFunction
create_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.

source
DearDiary.update_parameterFunction
update_parameter(id::Integer, key::Optional{AbstractString}, value::Optional{AbstractString})::UpsertResult

Update 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.

source
DearDiary.delete_parameterFunction
delete_parameter(id::Integer)::Bool

Delete a Parameter record.

Arguments

  • id::Integer: The id of the parameter to delete.

Returns

true if the record was successfully deleted, false otherwise.

source