Skip to content

gentlekenny/go-gcs-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Connect to Google Cloud Storage database using Go

I had troubles establishing connection to MySQL database which is live on Google Storage. Documentation wasn't quite intuitive but I've figured out a way and I am sharing it with you. To connect to GCS, you need a proxy dialer for mysql, which can be obtained from Google Cloud Platform. I also converted this connection into GORM, which I needed for my case. You can remove that part from the ConnectToGCSMySQLDatabase method, if you don't need it. Remember, you will also have to change return object from gorm.DB to sql.DB

Please if this ever helps you, leave a star.

About

Connect to Google Cloud Storage MySQL database via Go

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages