You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/scenarios/db.rst
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,3 +38,25 @@ The basics:
38
38
- Each model is a Python class that subclasses django.db.models.Model.
39
39
- Each attribute of the model represents a database field.
40
40
- Django gives you an automatically-generated database-access API; see `Making queries <https://docs.djangoproject.com/en/dev/topics/db/queries/>`__.
41
+
42
+
peewee
43
+
------
44
+
45
+
`peewee <http://docs.peewee-orm.com/en/latest/>`_ is another ORM with a focus on being lightweight with support for
46
+
Python 2.6+ and 3.2+ which supports SQLite, MySQL and Postgres by default. The `model layer <https://peewee.readthedocs.org/en/latest/peewee/quickstart.html#model-definition>`_
47
+
is similar to that of the Django ORM and it has `SQL-like methods <https://peewee.readthedocs.org/en/latest/peewee/quickstart.html#retrieving-data>`_
48
+
to query data. While SQLite, MySQL and Postgres are supported out-of-the-box, there is a `collection of add-ons <https://peewee.readthedocs.org/en/latest/peewee/playhouse.html#playhouse>`_
49
+
available.
50
+
51
+
PonyORM
52
+
-------
53
+
54
+
`PonyORM <http://ponyorm.com/>`_ is an ORM that takes a different approach to querying the database. Instead of writing
55
+
an SQL-like language or boolean expressions, Python's generator syntax is used. There's also an graphical schema editor
56
+
that can generate PonyORM entities for you.
57
+
58
+
SQLObject
59
+
---------
60
+
61
+
`SQLObject <http://www.sqlobject.org/>`_ is yet another ORM. It supports a wide variety of databases including more exotic
0 commit comments