HomeMogDBMogDB StackUqbar
v2.1

Documentation:v2.1

Supported Versions:

Other Versions:

Connecting to a Database

  1. 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.
  2. Use the psycopg2.connect function to obtain the connection object.
  3. Use the connection object to create a cursor object.
Copyright © 2011-2024 www.enmotech.com All rights reserved.