Skip to content

Commit 59cab28

Browse files
committed
merging pull request mattmakai#8, tweaking wording
1 parent 96e2226 commit 59cab28

File tree

3 files changed

+31
-11
lines changed

3 files changed

+31
-11
lines changed

databases.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,19 @@ <h2>Connecting to a database with Python</h2>
126126
is not necessary. Simply &quot;import sqlite3&quot; to begin interfacing with the
127127
single file-based database.</p>
128128
</div>
129+
<div class="section" id="object-relational-mapping">
130+
<h2>Object-Relational Mapping</h2>
131+
<p>Object-relational mappers (ORMs) allow developers to access data from a
132+
backend by writing with Python code instead of SQL queries. Each web
133+
application framework handles integrating ORMs differently.</p>
134+
<p>Django provides an ORM with its core functionality. Flask leaves using an
135+
ORM up to an extension, such as
136+
<a class="reference external" href="http://pythonhosted.org/Flask-SQLAlchemy/">Flask-SQLALchemy</a>.</p>
137+
<p>Developers can also use ORMs without a web framework, such as when
138+
creating a data analysis tool or a batch script without a user interface. The
139+
most widely used stand-alone ORM written for Python is currently
140+
<a class="reference external" href="http://www.sqlalchemy.org/">SQLAlchemy</a>.</p>
141+
</div>
129142
<div class="section" id="database-third-party-services">
130143
<h2>Database third-party services</h2>
131144
<p>Numerous companies run scalable database servers as a hosted service.

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-02-10T07:58:55Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-02-10T08:09:39Z</updated></feed>

source/content/pages/databases.rst

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ is not necessary. Simply "import sqlite3" to begin interfacing with the
7676
single 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
-----------------------------
8097
Database third-party services
8198
-----------------------------
@@ -96,16 +113,6 @@ needs.
96113
with managed, backed up, replicated, and auto-patched MySQL instances. Cloud
97114
SQL 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

110117
Database resources
111118
==================

0 commit comments

Comments
 (0)