sqlalchemy-trino
sqlalchemy-trino copied to clipboard
Add support for args/params for extraCredentials to be passed via headers to trino
Add support for args/params for extraCredentials to be passed via headers to trino
Thinking this link may be of use:
https://github.com/dropbox/PyHive/issues/311#issuecomment-586828649
+1 on this. It would be even better if we can pass in arbitrary headers. For our use case, the Host
header is needed.
Hello @matt12eagles, @mapshen Did you try:
engine = create_engine(...,
connect_args=dict(
http_headers={
'X-Presto-Extra-Credential': f"access-token={ACCESS_TOKEN}"
},
)
)
``
@dungdm93 I can confirm this setting does take effect - is there a doc on the args users can pass into connect_args
?