I have been trying to do a DB validating on Snowflake. But Cannot find the proper keywords to connect. I have installed snowflake-connector. But not able to get the script. I have tried below code and imported snowflake library too at Project and Suit levels/
ctx_QAT_ONEWM_UIPARAMS = snowflake.connector.connect(
user='****', # enter userID here
password='****', # Enter Password here
account='*****',
warehouse='******',
database='*****',
schema='****',
role= '*****',
authenticator='externalbrowser',
)
cs_QAT_ONEWM_UIPARAMS = ctx_QAT_ONEWM_UIPARAMS.cursor()
print("DB Session Started")
try:
cs_QAT_ONEWM_UIPARAMS.execute("SELECT current_version()")
one_row = cs_QAT_ONEWM_UIPARAMS.fetchone()
print(one_row[0])
finally:
cs.close()
ctx.close()