Skip to content

Commit e9b62a5

Browse files
committed
Push simple API way down into the library
You can now use the run/one/all API from cursors gotten with get_cursor, and even from cursors gotten from connections gotten with get_connection.
1 parent e1adfa4 commit e9b62a5

File tree

6 files changed

+467
-306
lines changed

6 files changed

+467
-306
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ before_script:
1212
script:
1313
- DATABASE_URL=postgres://jrandom@localhost/test py.test tests.py -v
1414
- python postgres/__init__.py -v
15+
- python postgres/cursors.py -v
1516
- python postgres/orm.py -v
1617
notifications:
1718
email: false

docs/index.rst

+18
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ postgres
66
:member-order: bysource
77

88

9+
The Context Managers
10+
--------------------
11+
12+
.. automodule:: postgres.context_managers
13+
:members:
14+
:member-order: bysource
15+
16+
17+
.. _simple-cursors:
18+
19+
Simple Cursors
20+
--------------
21+
22+
.. automodule:: postgres.cursor
23+
:members:
24+
:member-order: bysource
25+
26+
927
An Object-Relational Mapper (ORM)
1028
---------------------------------
1129

0 commit comments

Comments
 (0)