Skip to main content

BaseORM Objects

Base ORM for all database objects.

__init__

Construct client ORM compatible database object from dict object. Ensures strict type and attribute name check. The real k,v is stored in inner dict. Arguments:
  • dic:

__getattr__

Override attribute method for easy access of field value. To be used instead of [“attr”]. Return None if there is no such attribute Arguments:
  • name:

__setattr__

Strict attribute name and type check. Arguments:
  • name:
  • value:

BaseListORM Objects

A wrapper for a list of objects of a specific ORM.