Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I link a Google spreadsheet to PostgreSQL? [closed]

How can I link a Google spreadsheet to PostgreSQL? I googled and got some sample code for MySQL, and a couple of products which do it. As per this link ,support exists for a few databases.

like image 235
Jayadevan Avatar asked Feb 24 '15 15:02

Jayadevan


2 Answers

If you don't want to roll your own solution, SeekWell lets you automatically send data from Postgres to Sheets and can also sync changes from Sheets back to a database. Apps Script can do pieces of this, but I found it buggy and limited for our use case, so I built something else. There are both free and paid plans.

Disclaimer: I built this.

like image 88
howMuchCheeseIsTooMuchCheese Avatar answered Sep 30 '22 01:09

howMuchCheeseIsTooMuchCheese


My approach is using R and its googlesheets and DBI libraries. Googlesheets connects the spreadsheet with R and DBI connects the R with PostgreSQL. You can update the table whenever you want by simply running the script. With this approach you can also add transformations to the data before storing them in PostgreSQL. Another way is using Python and pandas and gspread libraries.

More info: Googlesheets: https://cran.r-project.org/web/packages/googlesheets/vignettes/basic-usage.html

DBI: https://cran.r-project.org/web/packages/DBI/vignettes/DBI-1.html

like image 39
Diego Avatar answered Sep 29 '22 23:09

Diego