|
__init__(self,
db=1,
records=[ ] ,
colnames=[ ] ,
compact=True,
rawrows=1)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
source code
|
|
|
setvirtualfields(self,
**keyed_virtualfields) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find(self,
f)
returns a new Rows object, a subset of the original object,
filtered by the function f |
source code
|
|
|
exclude(self,
f)
removes elements from the calling Rows object, filtered by the
function f, and returns a new Rows object containing the removed
elements |
source code
|
|
|
sort(self,
f,
reverse=True)
returns a list of sorted elements (not sorted in place) |
source code
|
|
|
as_list(self,
compact=True,
storage_to_dict=True,
datetime_to_str=True)
returns the data as a list or dictionary. |
source code
|
|
|
as_dict(self,
key=' id ' ,
compact=True,
storage_to_dict=True,
datetime_to_str=True)
returns the data as a dictionary of dictionaries
(storage_to_dict=True) or records (False) |
source code
|
|
|
|
|
xml(self)
serializes the table using sqlhtml.SQLTABLE (if present) |
source code
|
|
|
json(self,
mode=' object ' ,
default=1)
serializes the table to a JSON list of objects |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|