Open Terminal, and create SSH keys for each accounts.
ssh-keygen -t ed25519 -C "your_email@example.com"| import os | |
| from uuid import uuid4 | |
| ##### Memorize function for performance ################### | |
| ################################################################# | |
| def get_id_tuple(f, args, kwargs, mark=object()): | |
| l = [id(f)] | |
| for arg in args: | |
| l.append(id(arg)) |
| from google.cloud.sql.connector import Connector, IPTypes | |
| import pytds | |
| import os | |
| ##### SQL connecter ############################################# | |
| ################################################################# | |
| # Grabbing the user and password from environment variables | |
| db_name = os.getenv("APPLICATION_DB") |
| -- Search default value constraints: | |
| SELECT | |
| obj.name | |
| FROM | |
| sys.objects AS obj | |
| JOIN | |
| sys.columns AS clm ON obj.object_id = clm.default_object_id | |
| WHERE | |
| obj.type = 'D' AND obj.parent_object_id = OBJECT_ID('User') AND clm.name = 'CompanyId'; | |