Function gossip_kv::model::upsert_row

source ·
pub fn upsert_row<C>(
    row_ts: C,
    ns: Namespace,
    table_name: TableName,
    key: RowKey,
    val: String,
) -> Namespaces<C>
Expand description

TableMap element to upsert a row in an existing TableMap.

Merge this into an existing TableMap to upsert a row in a table. If the table does not exist, it gets created. There’s no explicit “create table” operation.

Parameters:

  • row_ts: New timestamp of the row being upserted.
  • table_name: Name of the table.
  • key: Primary key of the row.
  • val: Row value.