[英]How can I connect my flutter app to my azure database?
I made a database in Azure and it is updated every day with more data.我在 Azure 中创建了一个数据库,并且每天都会更新更多数据。 But now I want to retrieve some data from the azure database to my flutter app.但现在我想从 azure 数据库中检索一些数据到我的 flutter 应用程序中。 But do not know how to make a connection between flutter and azure DB.但不知道如何在 flutter 和 azure DB 之间建立连接。
Thank you!谢谢!
Your flutter app cannot connect to the Azure SQL database.您的 flutter 应用程序无法连接到 Azure SQL 数据库。 You need to create a REST API, which will expose data from your database to your mobile app.您需要创建一个 REST API,它将数据库中的数据暴露给您的移动应用程序。
You can create an API with ASP.NET CORE, Node.JS, Python, etc.您可以使用 ASP.NET CORE、Node.JS、Python 等创建 API。
Here are some resources that can help you:以下是一些可以帮助您的资源:
https://www.tutorialspoint.com/flutter/flutter_accessing_rest_api.htm https://www.tutorialspoint.com/flutter/flutter_accessing_rest_api.htm
https://flutter.dev/docs/cookbook/networking/fetch-data https://flutter.dev/docs/cookbook/networking/fetch-data
https://docs.microsoft.com/en-us/azure/azure-sql/database/connect-query-nodejs https://docs.microsoft.com/en-us/azure/azure-sql/database/connect-query-nodejs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.