.NET Async/Await for ODBC - mysql

I've been looking into tuts about how to implement Async/Await. I already used it to read text files and process long loops and yeah it improved the responsiveness of my application.
What I'm looking for right now is how to use it in connecting to and getting data from a database.
I'm currently using ODBC to interact with MySQL. According to some tuts, functions like ExecuteNonQueryAsync is only available to SQLClient. If I'm not mistaken, I can't use SQLClient to interact with MySQL. Also tried using MySqlClient, I got nothing.
Did I miss anything or should I start thinking of another way? I'm open to other means.
Thanks in advance!

Related

How can I connect my react native app to MySQL server?

I'm creating a mobile app for an existing website and trying to connect to a local instance I have running on a MySQL workbench. I've seen others recommend against the use of MySQL but I'm stuck with it, since that's the current database. I'm using expo to run my React Native code. Do I need to use a server, like "MAMP?"
Let me know if there is any more info that is needed.
You cannot connect your app directly to your database.
You will need a server/API that acts as an intermediate between the app and the DB. You can code it in most programming languages and if you know PHP, having MAMP on your system will allow you to build your API with PHP.
I've seen others recommend against the use of mySQL
You should definitely question their reasoning. I've been using MySQL for many years now in small and big projects and it has never been an issue. If they're comparing it to non-relational DBs like Mongo, I can understand, it's easier to setup and maintain a NoSQL database than a relational one.
I assume you're not that experienced but I still purposefully used some terms that may be new to a beginner. Since I don't know your skills, I will refrain from pointing you to specific tutorials/articles.
I recommend you to Google anything you don't understand from this answer.

Adding MySQL functionality in LabView

I am new to LabVIEW and trying to make a small project. In LabVIEW from one device, I am measuring some values and then need to store them in database. Initially, I used Excel to store data. But now I need to add MySQL functionality to store data and then later retrieve when need for analyzing.
I look for NI toolkit but it is expensive. I need some free and open source solution for my project.
I search over SO and google to find any examples where I can start and make it work, but I couldn't find any.
If someone suggest me some resources or having some example code that I can use to achieve my goal. thanks in advance.
Take a look at LabSQL. This works in LabVIEW 2017, allowing connection to a MySQL database without NI's LabVIEW Database Connectivity Toolkit.
I normally use the Database Connectivity Toolkit, but I did confirm I could get this to work in 2017 as well (though connecting to a MSSQL database instead of MySQL).
The only thing that tripped me up at first was not using the Create Connection before Open Connection (because I was used to the aforementioned toolkit). I didn't try anything complicated; I just ran a simple selection query. But it looks like everything should work pretty similarly to the toolkit. As adambro said, if you have a more specific question, maybe we can help with an answer.
I would suggest you could use SQLite. It is a fairly easy toolkit. You can download it via the VI package manager. By dr. James Powell. SQLite is excellent in storing data locally.
Use the SQLite browser from sqlitebrowser.org.
Also a nice way to learn SQL!

Can search-index be used for a project running on Node.js using mysql as database?

I have been looking for a suitable implementation of full text search for my application running on Node.js using MySQL as database. I have considered various options:
clucene - however, this has not been updated for a long time
lunr.js - more suitable for smaller data searches as it uses front end processing
Currently, the most hopeful one seems to be search-index, but I am not sure whether it can be implemented when the project is using MySQL as DB instead of LevelDB. According to what i found online, any database that are levelUP compliant (and a "Down" component) would work.
Does anyone has experience implementing search-index using MySQL? It'll be great to hear any suggestions regarding this, or any other full text search packages that works with Node.js and MySQL.
Yes, you can absolutely use search-index with mysql, in fact they make a great fit.
Use the mysqljs package, and check out: https://github.com/mysqljs/mysql#piping-results-with-streams2 . This will allow you to do the following:
connection.query('SELECT * FROM posts')
.stream({highWaterMark: 5})
.pipe(mySearchIndex.defaultPipeline())
.pipe(mySearchIndex.add()) // <- mysql docs are now searchable in mySearchIndex

Connect to Embedded MySQL from Delphi XE3

How could I connect to Embedded MySQL server (libmysqld.dll library) from Delphi XE3? For now I know only one way – use DevArt MyDAC components (specific TMyEmbConnection), but it is paid what is unacceptable for my task now. Try to use dbExpress, but not successful.
So, I have two questions:
1. Can I use dbExpress or any other components from Delphi XE3?
2. Any third-party components (prefer free)?
Thanks
I've used ZeosLib for that in the past.
Worked quite well actually, although really soon it turned out that it was easier to have a central database.
Several people wanted to use the application, and then they wanted to share their changes, and keep things in sync, etc. Luckily, switching to a mysql server was not much more work than copying the data, and changing the connection component parameters.

InstantObjects looks good, but I can't find any code to use MySQL with it.

I am trying to develop an application in the OO way. That is, I intend to design objects for all business components rather than design a form for a process. I am completely new to this.
Anyhow, I discovered InstantObjects and was quite impressed. However, I don't see any code that can help me use MySQL with it.
Has anyone done this before?
Nirav
AFAIK, u can use mySQL ODBC driver, ADO COnnection, InsntanObject ADO Broker to connect mySQL. Don't use DBExpresse since it doenst support mySQL 5.