Skip to main content

BaseORM Objects

class BaseORM(dict)
Base ORM for all database objects.

__init__

def __init__(dic)
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__

def __getattr__(name)
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__

def __setattr__(name, value)
Strict attribute name and type check. Arguments:
  • name:
  • value:

BaseListORM Objects

class BaseListORM(list)
A wrapper for a list of objects of a specific ORM.