MambuPy.orm.schema_mambu

This file imports all ORM schemas.

To use the ORM you MUST import schema_mambu, if you try to use the schemas individualy you will get some relationship() errors, for example, if you use schema_loans, you will get an error like this:

from mambupy.schema_loans import *
loan = session.query(LoanAccount).filter(LoanAccount.id=="12345").one()

… When initializing mapper Mapper|Branch|branch, expression …

Instead, if you use schema_mambu the query executes correctly:

from mambupy.schema_mambu import *
loan = session.query(LoanAccount).filter(LoanAccount.id=="12345").one()