Connecting to a Database
- Use the .ini file (the configparser package of Python can parse this type of configuration file) to save the configuration information about the database connection.
- Use the psycopg2.connect function to obtain the connection object.
- Use the connection object to create a cursor object.
Feedback