25 Jun 2020

Django - Object Relational Mapper Theory

  • django
  • concepts
  • python
  • ORM

    The user uses application to access data.

    Database has tables with data. One object will represent each column. ex) product table customer table etc. Customer table wil have cust_id, cust_name, cust_phn data.

    classs Customer:
        cust_id: int
        cust_name: str
        cust_phn: int
    

    Django creates a table in database automatically when an object is created in models.py, which is called ORM theory.

    Database Engine

    • Oracle, MySQL, SQLite…