<gh_stars>1-10
from getpass import getpass
from psycopg2 import connect, Error

def queryDo(query):
    try:
        with connect(
                host="backlog-handler-db.cobkfpis7wr9.us-east-2.rds.amazonaws.com",
                user='psqlMaster',
                password='<PASSWORD>',
                port='5000',
                database='testing_db'
        ) as connection:
            print(connection)

            with connection.cursor() as cursor:
                 cursor.execute(query)

    except Error as e:
        print(e)



from getpass import getpass
from psycopg2 import connect, Error

def queryDo(query):
    try:
        with connect(
                host="backlog-handler-db.cobkfpis7wr9.us-east-2.rds.amazonaws.com",
                user='psqlMaster',
                password='<PASSWORD>',
                port='5000',
                database='testing_db'
        ) as connection:
            print(connection)

            with connection.cursor() as cursor:
                 cursor.execute(query)

    except Error as e:
        print(e)