英文:
connecting database to flutter application
问题
我目前正在使用Flutter框架开发移动应用程序,并且我正在使用MS SQL托管我的数据库。我需要指导如何将我的数据库连接到Flutter。
我搜索了有关这个问题的资源,大多数使用PHP和MySQL,我也想确认一下一个特定问题,如果我在后端使用PHP进行连接,它是否可以与MS SQL一起使用?
英文:
I'm currently working on a mobile application using flutter framework and I'm using MS sql to host my database. I need guidance on how to approach connecting my database to flutter.
I searched for resources on the matter, most used php and mysql, I want to double check a certain matter with that too, if I used php to connect on backend, will it work with MS sql?
答案1
得分: 0
基本上,这将使得你的后端负责关于 SQL 数据库的数据管理和处理。你的 Flutter 应用通过一个接口与后端通信,大多数情况下是通过 REST。
你通过 Rest 发送的 POST、PUT、PATCH 等请求会被后端拦截并相应地进行管理。PHP 不是必需的,你可以使用任何语言,比如 Go 或 Java。
大多数语言都有适当的框架与数据库交互。进行简单的谷歌搜索就足够了,但大多数语言应该已经有类似的东西。
英文:
Basically, this would run so that your backend takes over the data management and processing regarding the sql database. Your Flutter app communicates with the backend via an interface, in most cases via REST.
Your POST, PUT, PATCH, etc. requests you send via Rest are intercepted by the backend and managed accordingly. PHP is not a must, you can use any language for this, e.g. Go or Java.
Most languages have appropriate frameworks to interact with the database. Here a simple Google search is enough, but most languages should already have something like that.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论