Import Postgres data into Google Spreadsheets - postgresql

I was trying to achieve this using google app script but sadly app script does not have a jdbc connector for postgres. Can someone please help me out with detailed steps on what needs to be done in order to get the postgres data in spreadsheets.

If you go to JDBC Apps Script guide it says there that:
"Apps Script can connect to external databases through the JDBC
service, a wrapper around the standard Java Database Connectivity
technology. In Apps Script, the JDBC service supports Google Cloud
SQL, MySQL, Microsoft SQL Server, and Oracle databases."
No mention of PostgeSQL support as of now.

Related

How to share a postgreSQL database?

I'm currently working on a project with some colleagues and a colleague of mine linked a database created in her postgreSQL server to our visual studio project, but we don't know how she can share the database with the rest of us, or how can we modify the database without having it.
We're using postgreSQL 14.
One option is to create your database in a cloud provider such as AWS.
You can take a look at: https://aws.amazon.com/rds/postgresql/
This way all of you will be able to access the database.

How to deploy the postgresql server in Google cloud

I am trying to deploy my postgresql server to google cloud, like how we deploy in heroku. But i am not finding any tutorial or proper docs to start.
Can any one please help me in this, Thanks!
You can easily migrate a postgres database to Google Cloud SQL.
Basically it involves, creating an SQL instance, a replication using a Compute engine VM. Then seeding, and migrating your data.
The official documentation for this from google is here;
Migrate an on-premises PostgreSQL cluster to Google Cloud
This is a very good post giving a detailed step by step guide for the entire process.
How to migrate PostgreSQL databases to Google Cloud SQL

Trying to connect to connect Google Sheet script to a Postgres Google Cloud SQL instance

I'm writing a script to connect a Google sheet to GCP Postgres instance, unfortunately I only see documentation for MySQL. Do you know if there is support for Google scripting/Postgres integration?
Thanks.
Google Apps Script has JDBC connectors but they do not have support for Postgres as yet.
Currently Apps Script's JDBC connectors only support Cloud SQL(MySQL), MySQL, MSSQL, and Oracle databases as listed in the opening paragraph of the JDBC documentation.
Yes, Apps Script JDBC connectors do not support Postgres, still. If you don't want to build your own script, you can use database connector addons. Most of them support Postgres.

How to connect Swift to a postgresql database hosted on Google Cloud

I'm new to working with back-end, but have been running into issues trying to get my iOS app to connect to my PostgreSQL DB.
I have developed an app with Swift which is a game that I want to run locally on iOS devices. I have a PostgreSQL DB set up in Google Cloud Platform but I cannot figure out how to get the Swift app to connect to my PostgreSQL DB.
I've read some about using Vapor or Perfect to run the application using Googles App Engine but I'm not sure that is what I want to do since I want the app to run locally but there are a few aspects of my app that I need a global database for.
Would anyone be able to point me in the right direction of how I need to connect my Swift application with Google Cloud's PostgreSQL?
Your question is pretty much very similar to this one.
In short, the correct answer is you shouldn't connect your client side application directly to the database. Instead, you should build a service that can connect to the database, and act as a service between your application. This helps prevent any unauthorized queries to your database and provides better performance. If you wanted to do this on GCP, you could look into something like Google Cloud Functions or Google Cloud App Engine to act as a service.
An alternative would be to use a "Database-as-a-Service" like Cloud Firestore. This is a scalable, pay-as-you-go service with great mobile support.
Yeah sure you need a server, ruby on rails to connect to your Postgres database.
The server will facilitate data back and forth from the Google cloud Postgressql

Installing Pentaho Mondrian and integrating it with custom web application

Installing Pentaho Mondrian and using it with custom web application.
I apologize in advance, if my questions seem to be too global, but there's not much info about these topics on internet and I need at least some common answers about overall direction that I should have.
Here's the deal, I have:
Some web app (Django/.NET/Nodejs, doesn't matter really)
Postgres database
Now I need some OLAP server, that I can run my MDX queries against and get analytics. In this case, Pentaho Mondrian OLAP server was chosen.
So I guess, these steps are needed to be done:
Install and run Mondrian as a server
Connect Mondrian to Postgres
Create XML cube schema file via Schema Workbench(seems to be obsolete) or manually
Call Mondrian via some API from my web app
Am I missing something?
Questions:
How do I install and run Mondrian as a server? Unfortunately, I've only found some confusing and obsolete info about it, even in official documentation.
How do I pass MDX queries from my web app to Mondrian and get results back in some meaningful way or form? Is there any API on Mondrian side?
Thank you.