Python Forum
Connect and disconnect to database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect and disconnect to database
#1
I can't seem to find straight answer in the books I've got or from my DDG searches...

When should I connect and disconnect to my database?

Is it OK/acceptable to connect at the beginning of a method and disconnect at the end or should I connect and disconnect each time I want to do something with the database?

I'm just wondering what the norm is!

Thank you
Reply


Messages In This Thread
Connect and disconnect to database - by snakes - Jun-05-2021, 06:37 PM
RE: Connect and disconnect to database - by snakes - Jun-06-2021, 06:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Database Connect JohnnyCoffee 1 1,674 Apr-02-2020, 05:25 PM
Last Post: ndc85430
  Connect to database OVH Serferi 0 2,056 Apr-26-2019, 07:34 AM
Last Post: Serferi
  connect to remote database via python script sunstar20 5 5,393 Apr-23-2018, 11:05 AM
Last Post: Gribouillis
  Unable to connect oracle database using python code mayuresh 2 17,142 Jan-27-2018, 11:57 AM
Last Post: mayuresh

Forum Jump:

User Panel Messages

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