@@ -76,6 +76,23 @@ is not necessary. Simply "import sqlite3" to begin interfacing with the
7676single file-based database.
7777
7878
79+ -------------------------
80+ Object-Relational Mapping
81+ -------------------------
82+ Object-relational mappers (ORMs) allow developers to access data from a
83+ backend by writing with Python code instead of SQL queries. Each web
84+ application framework handles integrating ORMs differently.
85+
86+ Django provides an ORM with its core functionality. Flask leaves using an
87+ ORM up to an extension, such as
88+ `Flask-SQLALchemy <http://pythonhosted.org/Flask-SQLAlchemy/ >`_.
89+
90+ Developers can also use ORMs without a web framework, such as when
91+ creating a data analysis tool or a batch script without a user interface. The
92+ most widely used stand-alone ORM written for Python is currently
93+ `SQLAlchemy <http://www.sqlalchemy.org/ >`_.
94+
95+
7996-----------------------------
8097Database third-party services
8198-----------------------------
@@ -96,16 +113,6 @@ needs.
96113with managed, backed up, replicated, and auto-patched MySQL instances. Cloud
97114SQL integrates with Google App Engine but can be used independently as well.
98115
99- Object-Relational Mapping
100- --------------------------
101-
102- Often you might want to simplify accessing your data, and prefer a simple,
103- object oriented way to manipulate your data, instead of raw SQL queries.
104-
105- This is solved by Object Relational Mapping (ORM) applications. Sometimes these
106- are integrated with your framework of choice, but you might use them without
107- general frameworks too. Probably, the most widely used stand-alone ORM written
108- for Python is `SQLAlchemy <http://www.sqlalchemy.org/ >`_.
109116
110117Database resources
111118==================
0 commit comments