Cannot pass SSL context to asyncpg from create_async_engine
in SQLAlchemy 1.4
#5975
-
Describe the bug
With SQLAlchemy 1.4's async support, obviously it would be helpful if this context could be passed through to the I had a dig through the SQLA14 source and couldn't find any kwarg-passing etc. that allows this behavior. Expected behavior my_ssl_ctx = ssl.create_default_context(cafile=PATH_TO_CA_FILE)
my_ssl_ctx.verify_mode = ssl.CERT_REQUIRED
async_engine = create_async_engine(POSTGRES_URL, ssl=my_ssl_context) To Reproduce Versions.
Have a nice day! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hi - have you looked at connect_args ? this works the same way with the async engine:
|
Beta Was this translation helpful? Give feedback.
hi -
have you looked at connect_args ? this works the same way with the async engine: