merkle_patricia_tree v0.2.8 MerklePatriciaTree.DB.ETS
Implementation of MerklePatriciaTree.DB which
is backed by :ets.
Link to this section Summary
Functions
Retrieves a key from the database.
Performs initialization for this db.
Stores a key in the database.
Link to this section Functions
    
      
      Link to this function
    
    
          
  
  get(db_ref, key)
get(MerklePatriciaTree.DB.db_ref(), MerklePatriciaTree.Trie.key()) :: {:ok, MerklePatriciaTree.DB.value()} | :not_found
Retrieves a key from the database.
    
      
      Link to this function
    
    
          
  
  init(db_name)
init(MerklePatriciaTree.DB.db_name()) :: MerklePatriciaTree.DB.db()
Performs initialization for this db.
    
      
      Link to this function
    
    
          
  
  put!(db_ref, key, value)
put!( MerklePatriciaTree.DB.db_ref(), MerklePatriciaTree.Trie.key(), MerklePatriciaTree.DB.value() ) :: :ok
Stores a key in the database.