Python Forum
No disconnect method for snowflake.connector ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No disconnect method for snowflake.connector ?
#1
Question 
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Program stuck at mysql.connector.connect zazas321 1 2,152 Jul-29-2021, 10:49 AM
Last Post: zazas321
  MYSQL.CONNECTOR ERROR DB1 8 4,064 Jul-23-2021, 03:31 AM
Last Post: DB1
  Connect and disconnect to database snakes 3 2,355 Jun-06-2021, 12:03 PM
Last Post: jefsummers
  mysql.connector Nobima 1 1,975 Apr-10-2020, 12:00 PM
Last Post: Larz60+
  Trouble retrieving dictionary from mysql.connector cursor swechsler 2 3,173 Sep-17-2019, 05:21 PM
Last Post: swechsler
  Using VBA to Call a Python script causes error in pyodbc connector pcarra 1 2,939 Jun-11-2019, 04:14 PM
Last Post: pcarra
  Add a stored procedure with variable using MySQL Connector UtiliseIT 0 2,348 May-04-2019, 12:46 PM
Last Post: UtiliseIT
  MySQL Connector trai 1 2,271 May-03-2019, 11:34 AM
Last Post: Larz60+
  How to handle None with mysql.connector verb 2 12,986 Nov-16-2018, 09:04 AM
Last Post: verb
  Python Teradata Connector - Column Names gracylayla 0 3,104 Aug-10-2018, 07:02 AM
Last Post: gracylayla

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020