Macro tarantool::upsert

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

Upsert a tuple or index.

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

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

See also: space.update()