6.4. Get

[<<<] [>>>]

value = bdb::Get(DB,key)

Get the value associated with the key in the database DB. The first argument to the function should be a value returned by the function bdb::open. The second argument is the key value. It can be arbitrary strings containing ASCII or binary data.

Use this function for databases where each key has only one associated value. If there are more values associated with the key the first one is returned. Actually this function is the same as the function bdb::First. If the key is missing the function returns the value of the first record of the database.


[<<<] [>>>]