Monday, November 25, 2019

phpMyPassion

How to connect with redshift in python


import psycopg2
import psycopg2.extras





def redshif_connect(): 
  ####### connection and session creation ##############  
  print("redshif_connect start......")  
  conn = psycopg2.connect(dbname="RS_DB_NAME", host="HOST_NAME", 
                    port="RS_PORT", user="USER_NAME", password="PWD")  
  print('redshif connection variable', conn)  
  self.cursor = conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor)  



About Author -

Hi, I am Anil.

Welcome to my eponymous blog! I am passionate about web programming. Here you will find a huge information on web development, web design, PHP, Python, Digital Marketing and Latest technology.

Subscribe to this Blog via Email :

Note: Only a member of this blog may post a comment.