Home | Trees | Index | Help |
|
---|
Package Pyblio :: Package Stores :: Module filestore :: Class Database |
|
object
--+ |Database
--+ |object
--+ | | |Publisher
--+ |object
--+ | | |Queryable
--+ | Database
Method Summary | |
---|---|
__init__(self,
schema,
file,
create)
| |
__delitem__(self,
k)
| |
Get a record by key. | |
__setitem__(self,
key,
value)
| |
Insert a new entry in the database. | |
has_key(self,
k)
| |
Turn on indexing of the db content. | |
save(self)
| |
Inherited from Queryable | |
Perform a query and return the count of matching records. | |
Perform a query and return a result set of the matching records. | |
Inherited from Database | |
Partition the result set in a list of sets for every value taken by the specified field | |
Check an entry for conformance against the Schema. | |
| |
Output a database in XML format | |
Inherited from Publisher | |
Call this method to emit a signal. | |
Clients interested in a given signal must register with this method. | |
Stop notifying events for the specified signal/callback pair. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Property Summary | |
---|---|
Inherited from Database | |
entries | |
txo |
Class Variable Summary | |
---|---|
Inherited from Database | |
entries = Pyblio.Store.Database.entries | |
rs : a ResultSetStore instance, containing all the
result sets defined on this database. | |
txo = Pyblio.Store.Database.txo |
Method Details |
---|
__getitem__(self,
key)
Get a record by key.
|
add(self, record, key=None)Insert a new entry in the database. New entries MUST be added with this method, not via an update with a hand-made Key. key is only useful for importing an existing database, by proposing a key choice.
|
index(self)Turn on indexing of the db content. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Sep 24 23:52:43 2006 | http://epydoc.sf.net |