mcc v1.2.0 Mcc.Model.TableUtil

Table util module.

Link to this section Summary

Functions

Return all records from current table by given key

Return all keys from current table

Link to this section Types

Link to this type

consistency_level()
consistency_level() ::
  :transaction
  | {:transaction, integer()}
  | :sync_transaction
  | {:sync_transaction, integer()}
  | :async_dirty
  | :sync_dirty

Link to this section Functions

Link to this function

first(table_name, consistency_level \\ :async_dirty)
first(atom(), consistency_level()) :: term() | :"$end_of_table"

First for current table.

Link to this function

get_all(table_name, key, consistency_level)
get_all(atom(), term(), consistency_level()) :: [map()]

Return all records from current table by given key.

Link to this function

keys(table_name, consistency_level)
keys(atom(), consistency_level()) :: [map()]

Return all keys from current table.

Link to this function

put(table_name, tuple, consistency_level)
put(atom(), tuple(), consistency_level()) :: :ok

Put into current table.

Link to this function

table_info(table_name, info_key)
table_info(atom(), atom()) :: term()

Table info.