summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2021-05-23 17:44:13 -0600
committerGord Thompson <gord@gordthompson.com>2021-05-23 17:44:13 -0600
commit7c2c5ccf285333439df523be4ab419fa3c629871 (patch)
tree829e2210835d18239ab5226c1357781120cfd737 /lib/sqlalchemy/dialects/postgresql/psycopg2.py
parentb2ab2bbf4faf508b3fa5749969019203a702786f (diff)
downloadsqlalchemy-7c2c5ccf285333439df523be4ab419fa3c629871.tar.gz
Add SSL connection info for psycopg2 and pg8000
Change-Id: I8ead04dd572f0c0020c226254543eb7d93876ee4
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index c2b679022..1d71e38d4 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -51,6 +51,13 @@ psycopg2-specific keyword arguments which are accepted by
:ref:`psycopg2_executemany_mode`
+* ``sslmode``: Controls psycopg2's behavior for encrypted connections.
+ The psycopg2 default is ``sslmode=prefer``; it will attempt an SSL
+ connection and if that fails it will fall back to an unencrypted connection.
+ ``sslmode=require`` can be used to only establish secure connections. (Other
+ modes are available. See the psycopg2 documentation for details.)
+
+
Unix Domain Connections
------------------------