Updated on 2023-10-23 GMT+08:00

Connecting to the Database

  1. Use the psycopg2.connect function to obtain the connection object.
  2. Use the connection object to create a cursor object.