Queries and joins return their results as new Table objects, so that
queries and joins can be easily performed as a succession of
operations.
|
|
|
__len__(self)
Return the number of objects in the Table. |
source code
|
|
|
__iter__(self)
Create an iterator over the objects in the Table. |
source code
|
|
|
__getitem__(self,
i)
Provides direct indexed/sliced access to the Table's underlying list
of objects. |
source code
|
|
|
|
|
|
|
|
|
__call__(self,
table_name)
A simple way to assign a name to a table, such as those dynamically
created by joins and queries. |
source code
|
|
|
copy_template(self)
Create empty copy of the current table, with copies of all index
definitions. |
source code
|
|
|
clone(self)
Create full copy of the current table, including table contents and
index definitions. |
source code
|
|
|
|
|
|
|
|
|
insert_many(self,
it)
Inserts a collection of objects into the table. |
source code
|
|
|
|
|
remove_many(self,
it)
Removes a collection of objects from the table. |
source code
|
|
|
query(self,
**kwargs)
Retrieves matching objects from the table, based on given named
parameters. |
source code
|
|
|
delete(self,
**kwargs)
Deletes matching objects from the table, based on given named
parameters. |
source code
|
|
|
where(self,
wherefn,
maxrecs=0)
An alternative to query, using a matching predicate function to
determine whether a given object matches the query or not. |
source code
|
|
|
join(self,
other,
attrlist=None,
**kwargs)
Join the objects of one table with the objects of another, based on
the given matching attributes in the named arguments. |
source code
|
|
|
join_on(self,
attr)
Creates a JoinTerm in preparation for joining with another table, to
indicate what attribute should be used in the join. |
source code
|
|
|
|
|
|
|
csv_export(self,
csv_dest,
fieldnames=None)
Exports the contents of the table to a CSV-formatted file. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|