aerospike / aerospike-client-c

Aerospike C Client
Other
98 stars 103 forks source link

Deleting bins by setting values to null or empty string #104

Closed VladimirBalun closed 3 years ago

VladimirBalun commented 3 years ago

I want to delete bin, by setting the value to NULL(empty string does not work) for bin. Does the library support this functionality?

Or how best to delete a specific bin when overwriting a record?

BrianNichols commented 3 years ago

Call as_record_set_nil(as_record* rec, const as_bin_name name) before calling aerospike_key_put(aerospike* as, as_error* err, const as_policy_write* policy, const as_key* key, as_record* rec) to delete bin.