Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed
4 years ago
.
Some context:
The Db already exists and the app is for internal use of the company, that's why I'm not doing an API.
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).
–
–
–
–
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
First: you need a SQLServerSocket:
https://github.com/nippur72/SqlServerSocket
is free and works!
Second: you need a client
https://github.com/nippur72/SqlServerSocket
(look in DartClient folder).
I did several connections and it works very well.
Of course,
it is not as "easy to use, with 2 or 3 clicks
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.
günter-zöchbauer gives the best practices.
You should use AQUEDUCT aqueduct.io and create a web api so your Flutter app connects to the server more securely.
–