@@ -198,8 +198,9 @@ def transaction(self, *, isolation='read_committed', readonly=False,
198
198
:param deferrable: Specifies whether or not this transaction is
199
199
deferrable.
200
200
201
- .. _`PostgreSQL documentation`: https://www.postgresql.org/docs/\
202
- current/static/sql-set-transaction.html
201
+ .. _`PostgreSQL documentation`:
202
+ https://www.postgresql.org/docs/
203
+ current/static/sql-set-transaction.html
203
204
"""
204
205
self ._check_open ()
205
206
return transaction .Transaction (self , isolation , readonly , deferrable )
@@ -208,6 +209,7 @@ def is_in_transaction(self):
208
209
"""Return True if Connection is currently inside a transaction.
209
210
210
211
:return bool: True if inside transaction, False otherwise.
212
+
211
213
.. versionadded:: 0.16.0
212
214
"""
213
215
return self ._protocol .is_in_transaction ()
@@ -449,8 +451,8 @@ async def copy_from_table(self, table_name, *, output,
449
451
>>> asyncio.get_event_loop().run_until_complete(run())
450
452
'COPY 100'
451
453
452
- .. _`COPY statement documentation`: https://www.postgresql.org/docs/ \
453
- current/static/sql-copy.html
454
+ .. _`COPY statement documentation`:
455
+ https://www.postgresql.org/docs/ current/static/sql-copy.html
454
456
455
457
.. versionadded:: 0.11.0
456
458
"""
@@ -518,8 +520,8 @@ async def copy_from_query(self, query, *args, output,
518
520
>>> asyncio.get_event_loop().run_until_complete(run())
519
521
'COPY 10'
520
522
521
- .. _`COPY statement documentation`: https://www.postgresql.org/docs/ \
522
- current/static/sql-copy.html
523
+ .. _`COPY statement documentation`:
524
+ https://www.postgresql.org/docs/ current/static/sql-copy.html
523
525
524
526
.. versionadded:: 0.11.0
525
527
"""
@@ -585,8 +587,8 @@ async def copy_to_table(self, table_name, *, source,
585
587
>>> asyncio.get_event_loop().run_until_complete(run())
586
588
'COPY 140000'
587
589
588
- .. _`COPY statement documentation`: https://www.postgresql.org/docs/ \
589
- current/static/sql-copy.html
590
+ .. _`COPY statement documentation`:
591
+ https://www.postgresql.org/docs/ current/static/sql-copy.html
590
592
591
593
.. versionadded:: 0.11.0
592
594
"""
@@ -1469,7 +1471,8 @@ async def connect(dsn=None, *,
1469
1471
will be used.
1470
1472
1471
1473
:param dict server_settings:
1472
- an optional dict of server parameters.
1474
+ an optional dict of server runtime parameters. Refer to
1475
+ PostgreSQL documentation for a `list of supported options`_.
1473
1476
1474
1477
:param Connection connection_class:
1475
1478
class of the returned connection object. Must be a subclass of
@@ -1507,8 +1510,10 @@ class of the returned connection object. Must be a subclass of
1507
1510
(and support for password files in general).
1508
1511
1509
1512
.. _SSLContext: https://docs.python.org/3/library/ssl.html#ssl.SSLContext
1510
- .. _create_default_context: https://docs.python.org/3/library/ssl.html#\
1511
- ssl.create_default_context
1513
+ .. _create_default_context:
1514
+ https://docs.python.org/3/library/ssl.html#ssl.create_default_context
1515
+ .. _list of supported options:
1516
+ https://www.postgresql.org/docs/current/static/runtime-config.html
1512
1517
"""
1513
1518
if not issubclass (connection_class , Connection ):
1514
1519
raise TypeError (
0 commit comments