Next | Lightweight Databases | 99 |
There are some special methods for dealing with duplicate keys
This recovers a list of the values associated with the given key:
@a = $db->get_dup($Key);
This is a count of the number of appearances of the key:
$n = $db->get_dup($Key);
You can checks to see if the key is associated with a certain value
If the pair is found, this returns false and positions the cursor at the specified pair
$failed = $db->find_dup($Key, $Value);
You can then iterate over preceding or following key-value pairs with ->seq
You can delete just one key-value pair:
$failed = $db->del_dup($Key, $Value);
This returns false on success
Next | Copyright © 2003 M. J. Dominus |