EctoTablestore.Repo.get

You're seeing just the callback get, go back to EctoTablestore.Repo module for more information.
Link to this callback

get(schema, ids, options)

View Source

Specs

get(schema(), ids :: list(), options()) :: schema() | {:error, term()} | nil

Fetch a single struct from tablestore where the whole primary key(s) match the given ids.

Options

  • :columns_to_get, string list, return the specified attribute columns, if not specify this option field, will try to return all attribute columns together.

  • :start_column, string, used as a starting column for Wide Column read, the return result contains this as starter.

  • :end_column, string, used as a ending column for Wide Column read, the return result DON NOT contain this column.

  • :filter, used as a filter by condition, support ">", "<", ">=", "<=", "==", "and", "or" and "()" expressions.

    The ignore_if_missing option can be used for the non-existed attribute column, for example: An attribute column does not exist meanwhile set it as true, will ignore this match condition in the return result; An existed attribute column DOES NOT suit for this use case, the match condition will always affect the return result, if match condition does not satisfy, they won't be return in result.

      filter: filter(({"name", ignore_if_missing: true} == var_name and "age" > 1) or ("class" == "1"))
  • :transaction_id, read under local transaction in a partition key.