Postgresql

Python define a new PostgreSQL connection

Define a new PostgreSQL connection and save credentials in a .env file. Include database name, username, password, host, and port.

pythonpostgresqlsqlpsycopg.env

Interactive recipe

You can use below interactive recipe to generate code. This recipe is available in MLJAR Studio.

Python code

# Python code will be here

Code explanation

  1. Save provided values in .env file as POSTGRESQL credentails.
  2. Notify the user when operation gets completed.

Example Python notebooks

Please find inspiration in example notebooks

« Previous
Postgresql