Skip to content

Tag: postgresql

Trying to supply PGPASS to Docker Image

New to Docker here. I’m trying to create a basic Dockerfile where I run a python script that runs some queries in postgres through psycopg2. I currently have a pgpass file setup in my environment variables so that I can run these tools without supplying a password in the code. I’m trying to replic…

PostgreSQL NOT operator in SQLAlchemy

I’d like to achieve toggling a boolean flag with just one query. My query looks as follows: Does SQLAlchemy supports PostgreSQL NOT (https://www.postgresql.org/docs/current/functions-logical.html) operator. How this can be achieved different way? Answer As Adrian Klaver points out in their comment, SQLA…