Python Forum

Full Version: No disconnect method for snowflake.connector ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using the snowflake module to connect to a Snowflake database using snowflake.connect(). The connection seems to work as expected, but after I'm done I don't see any way to disconnect. My connection object does not have a method named disconnect() and I can't find anything else that would work either.

Also, after using the Snowflake connection, it appears that the script does not exist when it is finished, unless I use an os.exit(0) command.

This is Linux host with Python 3.7 using snowflake v0.0.3. Because I'm running Python 3.7, I can't upgrade the snowflake module.

I do have Python v3.11.2 also installed. The script was written before 3.11.2 was installed, so I don't know if switching it will break anything.

Basically, I want to know how to cleanly close the connection to Snowflake.