|
__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 ' ,
is_active=' is_active ' ,
current_record=' current_record ' ,
current_record_label=None) |
source code
|
|
|
|
|
|
|
|
|
_build_query(self,
key)
for keyed table only |
source code
|
|
|
|
|
__call__(self,
key=<function <lambda> at 0x4068140>,
**kwargs) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_defaults(self,
fields)
If there are no fields/values specified, return table defaults |
source code
|
|
|
|
|
|
|
|
|
validate_and_update(self,
_key=<function <lambda> at 0x4068140>,
**fields) |
source code
|
|
|
update_or_insert(self,
_key=<function <lambda> at 0x4068140>,
**values) |
source code
|
|
|
validate_and_update_or_insert(self,
_key=<function <lambda> at 0x4068140>,
**fields) |
source code
|
|
|
bulk_insert(self,
items)
here items is a list of dictionaries |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__sizeof__ ,
__subclasshook__
|