|
|
__init__(self,
db,
tablename,
*fields,
**args)
Initializes the table and performs checking on the provided fields. |
source code
|
|
|
|
|
|
|
_enable_record_versioning(self,
archive_db=None,
archive_name='%(tablename)s_archive',
current_record='current_record',
is_active='is_active') |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_build_query(self,
key)
for keyed table only |
source code
|
|
|
|
|
|
|
| __call__(self,
key=<function <lambda> at 0x21b0938>,
**kwargs) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_defaults(self,
fields)
If there are no fields/values specified, return table defaults |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| update_or_insert(self,
_key=<function <lambda> at 0x21b0938>,
**values) |
source code
|
|
|
|
bulk_insert(self,
items)
here items is a list of dictionaries |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
| as_dict(self,
flat=False,
sanitize=True,
field_options=True) |
source code
|
|
|
|
| as_xml(self,
sanitize=True,
field_options=True) |
source code
|
|
|
|
| as_json(self,
sanitize=True,
field_options=True) |
source code
|
|
|
|
| as_yaml(self,
sanitize=True,
field_options=True) |
source code
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__sizeof__,
__subclasshook__
|