macro_rules! upsert {
    ($target:expr, $value: expr, $($op:expr),+ $(,)?) => { ... };
}
Expand description

Upsert a tuple or index.

The helper macro with semantic same as space.upsert()/index.upsert() functions, but supports different types in ops argument.

  • target - updated space or index.
  • value - encoded tuple in MsgPack Array format ([part1, part2, ...]).
  • ops - encoded operations in MsgPack array format, e.g. [['=', field_id, 100], ['!', 2, 'xxx']]

See also: space.update()