Skip to content

Commit

Permalink
connect
Browse files Browse the repository at this point in the history
  • Loading branch information
teej committed Feb 21, 2024
1 parent e319021 commit d28fa29
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@
import snowflake.connector


connection_params = {
"account": os.environ["SNOWFLAKE_ACCOUNT"],
"user": os.environ["SNOWFLAKE_USERNAME"],
"password": os.environ["SNOWFLAKE_PASSWORD"],
"role": os.environ["SNOWFLAKE_ROLE"],
"warehouse": os.environ["SNOWFLAKE_WAREHOUSE"],
}


def main():
workspace = os.environ.get("GITHUB_WORKSPACE")
print(f"Hello, World! [{workspace}]")
conn = snowflake.connector.connect(**connection_params)
print(f"Hello, World! [{workspace}]:{conn.role}")


if __name__ == "__main__":
Expand Down

0 comments on commit d28fa29

Please sign in to comment.