AFUpdateOption coding group

Indicates how to treat duplicate values in the archive, when supported by the Data Reference.

Lua access code

To access the code of the codings below, append the coding group name and coding name to inmation.model.codes, see an example below.

return inmation.model.codes.AFUpdateOption.UO_INSERT

Codings

Name Code Description
UO_INSERT 1 Add the value to the archive. Any existing values at the same time are not overwritten
UO_INSERTNOCOMPRESSION 5 Add the value to the archive without compression. If this value is written to the snapshot, the previous snapshot value will be written to the archive, without regard to compression settings. Note that if a subsequent snapshot value is written without the InsertNoCompression option, the value added with the InsertNoCompression option is still subject to compression
UO_NOREPLACE 2 Add the value to the archive only if no value exists at the same time. If a value already exists for that time, the passed value is ignored
UO_REMOVE 6 Remove the value from the archive if a value exists at the passed time
UO_REPLACE 0 Only replaces an existing value in the archive
UO_REPLACEONLY 3 Replace an existing value in the archive at the specified time. If no existing value is found, the passed value is ignored