Skip to content

Commit

Permalink
Update as_operations_add_incr()/as_operations_add_incr_double() docs …
Browse files Browse the repository at this point in the history
…to mention that the record/bin will be created by default when the record/bin does not already exist.
  • Loading branch information
BrianNichols committed Jan 19, 2024
1 parent f4cb3b0 commit c489326
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/include/aerospike/as_operations.h
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ AS_EXTERN bool
as_operations_add_read_all(as_operations* ops);

/**
* Add a `AS_OPERATOR_INCR` bin operation with (required) int64_t value.
* Add a `AS_OPERATOR_INCR` bin operation with int64_t value. If the record or bin does not exist,
* the record/bin will be created by default with the value to be added.
*
* @param ops The `as_operations` to append the operation to.
* @param name The name of the bin to perform the operation on.
Expand All @@ -593,7 +594,8 @@ AS_EXTERN bool
as_operations_add_incr(as_operations* ops, const char* name, int64_t value);

/**
* Add a `AS_OPERATOR_INCR` bin operation with double value.
* Add a `AS_OPERATOR_INCR` bin operation with double value. If the record or bin does not exist,
* the record/bin will be created by default with the value to be added.
*
* @param ops The `as_operations` to append the operation to.
* @param name The name of the bin to perform the operation on.
Expand Down

0 comments on commit c489326

Please sign in to comment.