summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-06-07 21:14:05 +0200
committerFederico Caselli <cfederico87@gmail.com>2021-06-07 21:35:30 +0200
commitfe80f92670949cde235af1d734264f59b52084c2 (patch)
treefe4f1755eb35ac8c7216dc3095766a7000eb80f9 /lib/sqlalchemy/dialects/sqlite/pysqlcipher.py
parent94169108cdd4dace09b752a6af4f4404819b49a3 (diff)
downloadsqlalchemy-fe80f92670949cde235af1d734264f59b52084c2.tar.gz
Add note regarding encryption-related pragmas
passed in the url in pysqlcipher. Fixes: #6589 Change-Id: I86f93f84ef2bd374c4832a70e26e4901d024ed4b
Diffstat (limited to 'lib/sqlalchemy/dialects/sqlite/pysqlcipher.py')
-rw-r--r--lib/sqlalchemy/dialects/sqlite/pysqlcipher.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py b/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py
index 1a9337671..aafc00844 100644
--- a/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py
+++ b/lib/sqlalchemy/dialects/sqlite/pysqlcipher.py
@@ -68,6 +68,11 @@ new connection. Currently, ``cipher``, ``kdf_iter``
e = create_engine('sqlite+pysqlcipher://:testing@/foo.db?cipher=aes-256-cfb&kdf_iter=64000')
+.. warning:: Previous versions of sqlalchemy did not take into consideration
+ the encryption-related pragmas passed in the url string, that were silently
+ ignored. This may cause errors when opening files saved by a
+ previous sqlalchemy version if the encryption options do not match.
+
Pooling Behavior
----------------