diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2020-08-24 01:56:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 01:56:17 +0100 |
commit | f7618f8bf5a59baddba9fcab4ca9e8e2ba53cb5b (patch) | |
tree | cd9d7c9de99310e88b18b79d1dc082257549fcf7 /doc/src | |
parent | 3aadecebaaa5f1c6f93515c32fb0005c52d7089b (diff) | |
parent | 96f0f63de25ed2ce6c9f5541ff8d36a64f18b599 (diff) | |
download | psycopg2-f7618f8bf5a59baddba9fcab4ca9e8e2ba53cb5b.tar.gz |
Merge pull request #1120 from bashtanov/dictcursor-docs-improvement
DictCursor docs improvement
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/extras.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/extras.rst b/doc/src/extras.rst index bc47b30..eed049c 100644 --- a/doc/src/extras.rst +++ b/doc/src/extras.rst @@ -41,8 +41,8 @@ If you want to use a `!connection` subclass you can pass it as the Dictionary-like cursor ^^^^^^^^^^^^^^^^^^^^^^ -The dict cursors allow to access to the retrieved records using an interface -similar to the Python dictionaries instead of the tuples. +The dict cursors allow to access to the attributes of retrieved records +using an interface similar to the Python dictionaries instead of the tuples. >>> dict_cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) >>> dict_cur.execute("INSERT INTO test (num, data) VALUES(%s, %s)", |