|
|
|
create(self,
*fields,
**kw)
Create a new base with specified field names... |
source code
|
|
|
|
|
open(self)
Open an existing database and load its content into memory |
source code
|
|
|
|
|
insert(self,
*args,
**kw)
Insert a record in the database Parameters can be positional or
keyword arguments. |
source code
|
|
|
delete(self,
removed)
Remove a single record, or the records in an iterable Before starting
deletion, test if all records are in the base and don't have twice
the same __id__ Return the number of deleted items |
source code
|
|
|
update(self,
record,
**kw)
Update the record with new keys and values and update indices |
source code
|
|
|
|
|
|
|
__call__(self,
**kw)
Selection by field values db(key=value) returns the list of records
where r[key] = value |
source code
|
|
|
__getitem__(self,
record_id)
Direct access by record id |
source code
|
|
|
|
|
__delitem__(self,
record_id)
Delete by record id |
source code
|
|
|
|