themis/internal/erlang/ets

Types

pub type Table
pub type TableAccess {
  Public
  Protected
  Private
}

Constructors

  • Public
  • Protected
  • Private
pub type TableBuilder {
  TableBuilder(table_type: TableType, table_access: TableAccess)
}

Constructors

  • TableBuilder(table_type: TableType, table_access: TableAccess)
pub type TableInfo {
  TableInfo(
    id: Tid,
    decentralized_counters: Bool,
    read_concurrency: Bool,
    write_concurrency: Bool,
    compressed: Bool,
    memory: Int,
    owner: Pid,
    heir: Option(Pid),
    name: Atom,
    size: Int,
    node: Atom,
    named_table: Bool,
    table_type: TableType,
    keypos: Int,
    protection: TableAccess,
  )
}

Constructors

  • TableInfo(
      id: Tid,
      decentralized_counters: Bool,
      read_concurrency: Bool,
      write_concurrency: Bool,
      compressed: Bool,
      memory: Int,
      owner: Pid,
      heir: Option(Pid),
      name: Atom,
      size: Int,
      node: Atom,
      named_table: Bool,
      table_type: TableType,
      keypos: Int,
      protection: TableAccess,
    )
pub type TableType {
  Set
  OrderedSet
  Bag
  DuplicateBag
}

Constructors

  • Set
  • OrderedSet
  • Bag
  • DuplicateBag
pub type Tid

Functions

pub fn counter_increment(table: Table, key: a) -> Nil
pub fn counter_increment_by(
  table: Table,
  key: a,
  by: Number,
) -> Nil
pub fn info(table: Table) -> TableInfo
pub fn insert(table: Table, key: a, value: b) -> Bool
pub fn insert_many(table: Table, to_insert: Dict(a, b)) -> Bool
pub fn insert_new_raw(
  table: Table,
  object: Dynamic,
) -> Result(Nil, Nil)
pub fn insert_raw(table: Table, object: a) -> Bool
pub fn lookup(table: Table, key: a) -> List(Dynamic)
pub fn match_metric(table: Table, kind: a) -> List(Dynamic)
pub fn match_record(table: Table, name: String) -> List(Dynamic)
pub fn new(builder: TableBuilder, name: String) -> Table
Search Document