'Can't connect to SQL Server via dart
I need to create a windows REST app that runs on a SQL Server machine, to provide data from a SQL Server database to an Android app.
I know that it would be better to create the REST app in NODE, but since I'm learning Flutter I prefer build in DART to avoid learning 2 development tools.
After some searching, I found the DART library dart_mssql, but I get errors when I try to run the demo example:
c://users/xx/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/dart_mssql-1.0.1/lib/src/sql_connection.dart:1:1:
Error: Dart native extensions are no longer supported.Migrate to using FFI instead (https://dart.dev/guides/libraries/c-interop)
import 'dart-ext:dart_mssql';Error: Cannot run with sound null safety, because the following dependencies
Is there a way to avoid this incompatibility with new DART 2 version? I tried other SQL Server Dart libraries, but none seem to work...
Solution 1:[1]
sql_conn (Only Device Android). Work...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | JĂșnior Nascimento |
