Skip to content

Commit 6676093

Browse files
committed
Added a scenario for working with databases
1 parent 357d3a0 commit 6676093

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

docs/contents.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ different scenarios.
6868
scenarios/cli
6969
scenarios/gui
7070
scenarios/web
71+
scenarios/db
7172
scenarios/admin
7273
scenarios/ci
7374
scenarios/speed

docs/scenarios/db.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Databases
2+
=========
3+
4+
DB-API
5+
------
6+
7+
The Python Database API (DB-API) defines a standard interface for Python
8+
database access modules. It's documented in `PEP 249 <http://www.python.org/dev/peps/pep-0249/>`_.
9+
Nearly all Python database modules such as `sqlite3`, `psycopg` and
10+
`mysql-python` conform to this interface.
11+
12+
13+
14+
SQLAlchemy
15+
----------
16+
17+
`SQLAlchemy <http://www.sqlalchemy.org/>`_ is a commonly used database toolkit. Unlike many database libraries
18+
it not only provides an ORM layer but also a generalized API for writing
19+
database-agnostic code without SQL.
20+
21+
::
22+
23+
pip install sqlalchemy
24+

0 commit comments

Comments
 (0)