Pockets.Table (Pockets v1.6.0)
View SourceA simple struct that we store for each Pockets
table so that we can nicely map what you
use to refer to your Pockets
table and what the behind-the-scenes library uses to refer to the
table.
alias
: what you (the developer) uses to refer to yourPocket
tables.tid
: the table identifier: i.e. what thelibrary
uses to identify the table.library
: denotes either:ets
or:dets
type
: the type of storage.:bag
|:duplicate_bag
|:set
Summary
Types
@type t() :: %Pockets.Table{ alias: atom(), library: :ets | :dets, opts: keyword(), tid: Pockets.alias(), type: atom() }