summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
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
------------------------