Can't connect to SQL Server via dart - sql-server

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...

sql_conn (Only Device Android). Work...

Related

Building a Taxii Server at mitre ATT&CK

Is it essential to build a taxii server when you want to proceed with a tool or related project that automatically maps mitre ATT&CK?
I wonder if building a Taxii server is essential

Server communication with database

I'm creating an online game and the client is going to be made using unity as well as the server and I'm wondering whether it's okay for the server to communicate with mysql database via PHP
For simple tasks, there is actually nothing wrong with that.
There is also a example of using this method in the wiki here: http://wiki.unity3d.com/index.php?title=Server_Side_Highscores
But be aware: that is not the fastest solution.
You could make a faster direct connection with a plugin like this one:
https://github.com/Hanslen/Unity-with-MYSQL
And for native unity support on Android and iOS support i would go with a sqlite database plugin: https://github.com/rizasif/sqlite-unity-plugin

How to develop react app via online development

I'm just curios about this situations creating app with React Js. Is there any way to build directly on the hosting Cpanel not on localhost during development? I don't know if this question is right I'm new about this but how about if were done developing on local then build and upload to server, if there is small changes of the application then you can't change directly on the server because the code is bundle and minified. I tried to search on google and watch tutorials but can't find it. I know there nothing wrong to build on local, however I like the point that while i'm building I know it works very well and see it on live then if there is small changes I could change directly.
Apologies to my curiosity. Thanks in advance for your ideas and correcting me.
I'm not sure if react requires bundling. It is not so big itself. One useful way that you can do it, just build your react app in local, then create a git repository, push it to there then from there you can pull it to your server by connecting your server with SSH.
This way may require some installations on server side again with SSH connection. You can search the details about the way I suggest you.
Appreciating your curiosity, I can think of two possible (not at all recommended though) solutions.
1. Dump jsx
React applications requires a build process primarily for JSX syntax. It is developer intuitive. If there is no jsx in your code no need to build. So, this jsx
return (
<h1>Greetings, {this.props.name}!</h1>
);
Should be written as this js
return React.createElement('h1', null, 'Greetings, ' + this.props.name + '!');
2. Setup development environment in Server
This is a risky one. There're possible security issues.
Its like have a centralized code base on the server that anyone with access can modify.
Here, you can edit files & run build task directly on server.
Notes:
Today's basic development flow is code -> build -> deploy. Better stick with it for serious applications.

how to use mongoDB database for web application without installing mongoDB on machine?

I have got a task to send an application to client, that will have angular at client side with nodejs server. I need to use the database, and mongoDB is the only one which i know to use. I have built various web application with mongoDB database to store the information. surely i have installed it on windows machine. My question is, how can i use the mongoDB without installing on the machine, considering that the client will not have to go through unnecessary steps like installing mongoDB on machine and then see my demo. All i want is he runs the node server and see the demp app.
is there any mongoDB service which i can use? how to connect with node server?
please help
You could try modulus, I made a simple project using their mongoDB host and it was pretty easy to implement.
Download the MongoDB for Windows binaries as zip file: open https://www.mongodb.com/try/download/community, select the version you need, Platform: Windows and Package: zip
Extract it anywhere you like, for example to C:\mongo
Create the data directory (e.g. C:\mongo\data)
Run C:\mongo\bin\mongod.exe --dbpath=C:\mongo\data
To stop the MongoDB, you may just use Control-C

Any node.js relational database bindings for Windows?

I'm trying to build a RESTful internal web server at work using node.js, where I'm currently restricted to using a Windows 2003 Server.
I've hit a stumbling block with regards to database support however. Are there any bindings currently available for reading and writing to sqlite, PostgreSQL or MySQL on Windows based machines?
Mariano has mentioned Windows support in the future in these comments, but ideally I'd like to use something available just now as a proof of concept.
I'm author of mysql-native.
Both official (felixge node-mysql) and my driver has been successfully used under windows,
I'm using and developing it under linux/windows 50/50% time . Feel free to contact me if you have any questions
Have you tried mysql-native? It's native (mysql) which means there are no other dependencies, so should run on any platform node supports. Seems to be actively maintained also, and has some examples to show you how to use the library. Link: https://github.com/sidorares/nodejs-mysql-native

Resources