I'm trying to upload a CSV file to a database in my SQL instance on Google Cloud SQL, and I'm confused as to how exactly am I supposed to go about this project.
my code so far:
import pandas as pd
from google.cloud.sql.connector import connector
read_file = pd.read_csv(PATH TO CSV FILE)
df = pd.DataFrame(read_file, columns=['date', 'current_market_queries',
'last_year_market_queries'])
conn = connector.connect("project:region:instance", "pymysql",
host="34.101.244.253", db="insights", user="...",
password="...", check_hostname=False)
What exactly are the parameters for the connect method? What's google standard? Is the user supposed to be the email of my Google Cloud account?
Furthermore, is there a link to a website that lists the methods of this google.cloud.sql.connector Python library?