Search code examples
dartfluttergoogle-cloud-sql

How to traffic data between Google Cloud SQL and Flutter?


Cloud SQL documentation about connecting with external apps didn't helped me much. Isn't there some library to handle data traffic like Firebase's Cloud Firestore and Realtime Database offer?


Solution

  • Either use cloud functions to provide an API for Flutter and access to the DB
    or run your custom server in the Google cloud that does that.

    SQL databases should never be accessed over the internet directly and instead hidden behind a web server that only exposes a limited or specialized API.