A union of curiosity and data science

Knowledgebase and brain dump of a database engineer


sql alchemy - run a statement , postgres

from sqlalchemy import create_engine
engine = create_engine('postgresql://<user>:<password>@localhost:5432/<database_name>')
engine.connect().execute("SQL TO EXECUTE")

 

Add comment