ExAliyunOts.delete_row

You're seeing just the function delete_row, go back to ExAliyunOts module for more information.
Link to this function

delete_row(instance, table_name, primary_keys, options \\ [])

View Source

Specs

delete_row(instance(), table_name(), primary_keys(), options()) :: result()

Official document in Chinese | English

Example

import MyApp.TableStore

delete_row "table1",
  [{"key1", 3}, {"key2", "3"}],
  condition: condition(:expect_exist, "attr2" == "value2")

delete_row "table1",
  [{"key1", 3}, {"key2", "3"}],
  condition: condition(:expect_exist, "attr2" == "value2"),
  transaction_id: "transaction_id"

Options

  • :condition, required, please see condition/1 or condition/2 for details.
  • :transaction_id, optional, write operation within local transaction.