I have big Google Spreadseet (about 50 colums and about 50 sheets). Can I export data from tables to SQL database? May be there are script opportunities or anothers...
Thanks in advance, Dmitry.
I think the best way to do this would be to use Google Apps Script.
The SpreadsheetService will easily open and read the spreadsheet, then you can use the JDBC service to connect to Cloud SQL.
Related
How to daily import Google workspace data automatically to Big Query database?
I'm new to Big Query and i can do it manually but i want to automate this process. Thanks.
With BigQuery you can create external tables, that enable you to query data that is stored in your Google Drive (CSV, Avro, JSON, or Google Sheets documents).
You can find a nice how-to here.
As im not a developper i often use Google Spreadsheets to prototype my projects.
Now I would like to connect a sheet to a database (like Mongo).
As my data can changes daily (i also use Zapier for automated actions) i assume it would be more easy to Sync my sheet with the database i use.
After a search on the Internet, i didnt find a solution.
Do you have any clue ?
Thanks,
Seb.
You can use free 1GB of firebase (cloud noSQL DB) for free, and if that's good enough for you then you can sync data from G Sheets->Firebase via custom Library,, more details here:
https://sites.google.com/site/scriptsexamples/new-connectors-to-google-services/firebase
my video could help you maybe: https://youtu.be/9SIAnjgKZZQ
I have an AppMaker app that uses Drive tables. However I need to move to Cloud SQL, so I followed the steps here: Connect AppMaker to Google SQL
I created the Clould SQL (PostgreSQL) instance and database fine, then created the same tables in Cloud as I was using in Drive (Well, almost, I could not have a table named User).
When I went to create the Model in AppMaker, it spent a lot of time spinning, then said "Failed to load models for Google Cloud SQL." And then, strangely, it said Refresh Required.
I thought this was a fluke but when I tried again I got the exact same error messages. Any idea what is going on? Is there any chance it is failing because I still have the Drive tables with the same names as the Cloud SQL tables?
Thanks for any tips or pointers.
App Maker does not currently support PostreSQL.
I'm wondering whether it's possible to make GAE create more than 7 sql database backups and how much that will cost. They don't seem to mention this possibility in their document.
I'm afraid it's not possible to have more than 7 backups at a time for Cloud SQL. The goal is to use the backups as a last line of defense for restoring a broken database. If you need snapshots over time, you can use the Export functionality to save dumps to a Cloud Storage bucket.
I'd like to use a Google spreadsheet to display my database analytics
I'd like to be able to do summary queries on my Heroku Postgres database using Google Apps Script and then display and chart them in a Google spreadsheet.
Heroku offers a number of ways to connect to Heroku Postgres:
https://devcenter.heroku.com/articles/heroku-postgresql
Likewise Google Apps script offers access to a number of different external services
https://developers.google.com/apps-script/defaultservices
I've never attempted this before and so am interested in what is simplest.
JDBC seems possible but are there any other options?
As far as I can see, the only overlap between the two is JDBC which I have no experience with but feels like a bit of a heavyweight third protocol to use to get between the systems.
IS JDBC the best way to get the data across or is there something simpler I'm missing?
Set up a dataclip from dataclips.heroku.com with your desired data described as a SQL query.
Append .csv to the resulting URL
Use that URL on the google spreadsheet's importData function, like so:
=importData("https://dataclips.heroku.com/[your-dataclip].csv")
I prefer to use Skyvia for connecting Google Sheets and Heroku Postgres without coding. Here is how I do it: https://skyvia.com/data-integration/integrate-google-sheets-heroku-postgres. All I need is to specify the connections to Google Sheets and Heroku Postgres and select data to replicate. Skyvia will copy the specified Google Sheets data to Heroku Postgres and maintain this copy up-to-date automatically with incremental updates.
QueryClips is exactly what you need. This is its primary use case.