thomasaarholt commented on issue #918:
URL: https://github.com/apache/arrow-adbc/issues/918#issuecomment-1795005777
In my previous post I had written `"cache_mfa_token": "true", # this one is
unnecessary on Mac`. That was complete nonsense 😅 .
Closing this with a final, working code example, using a double context
manager to close the connection and cursor.
```python
with dbapi.connect(
uri=uri,
db_kwargs={
"adbc.snowflake.sql.client_option.cache_mfa_token": "true",
"adbc.snowflake.sql.auth_type": "auth_mfa",
},
) as conn:
with conn.cursor() as cursor:
cursor.execute(query)
tbl = cursor.fetch_arrow_table()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]