How to connect Flutter App to sql server [closed]

匿名 (未验证) 提交于 2019-12-03 01:34:02

问题:

Some context:The Db already exist and the app is for internal use of the company, that's why I'm not doing an API

Hi guys, I need to connect my app to an SQL server to execute a query and retreive data from it.

I've already tried with this plugin but no succes SqlJocky5

Someone have done something similar already with flutter? How you did it? there's another library for connecting the app with a sql server? So, What I'm looking for is if there's a library to do it like in Xamarin Forms (SqlClient) or in Android Studio Java (JDBC Driver)

Thanks in advance

回答1:

I tried to ask a question and I got block because I didn’t answer some question.

Here is the answer:

From https://groups.google.com/forum/#!topic/flutter-dev/GO9ilukcoN4 from @Abner Hernandez

https://github.com/nippur72/SqlServerSockethttps://github.com/nippur72/SqlServerSocket (look in DartClient folder). I did several connections and it works very well.

Of course, and less programming..." but yes, you can "implement a simple SELECT * FROM XXX and show the results on both devices (IOS and Android) with Flutter." I did it.!

Yes I tested it with my remote sql and is working on CRUD. I didn't test for extensive query yet.

You should use AQUEDUCT aqueduct.io and create a web api so your Flutter app connects to the server more securely.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!