Package Pyblio :: Module Store :: Class ResultSet
[hide private]
[frames] | no frames]

Class ResultSet

source code

object --+
         |
        ResultSet
Known Subclasses:
Stores.resultset.ResultSet

A set of keys from the database.

These sets can be manually managed by the user or be the result of a query. They can be made persistent, and are then stored along with the database.


Note: this class is usually derived by every backend store.

Instance Methods [hide private]
 
add(self, k)
Add a new item in the set.
source code
 
__delitem__(self, k)
Remove an item from the set.
source code
 
__iter__(self) source code
 
itervalues(self) source code
 
iterkeys(self) source code
 
iteritems(self) source code
 
__len__(self) source code
 
destroy(self, k)
Delete all the records contained in the result set.
source code
 
has_key(self) source code
 
view(self, criterion) source code
 
xmlwrite(self, fd) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

add(self, k)

source code 
Add a new item in the set.
Parameters:
  • k (instance of Key) - the key to add to the set

__delitem__(self, k)
(Index deletion operator)

source code 
Remove an item from the set.
Parameters:
  • k (instance of Key) - the key to remove from the set