What is ORM in Python Flask?
ORM (Object Relational Mapping) is a programming technique which lets the programmer to write code using the Object-Oriented features of a language to interact with a database.
This abstracts away the details of the database language and makes the job easier for the programmer. Models are used in Flask to achieve Object Relational Mapping and thus help the programmer to interact with the database using Python’s object-oriented features such as classes and methods.
Declaring Models in Flask
Models are used in Flask to conveniently handle interactions with databases (like SQL, SQLite, etc.) using ORM (Object Relational Mapping). This article describes what is ORM, how to declare models in Flask, and finally a simple example Flask application. It assumes basic familiarity with Flask and Python programming languages.
Contact Us