React Panel Plugin - How to execute a query (SELECT, UPDATE) on db from code?

Hello everyone,
I need to develop a React Panel Plugin capable of interfacing with a MySql datasource and do some queries (I need to execute simple “SELECT” and “UPDATE” queries to get information from db and to update it as well). I managed to get the datasource properly (by means of getDataSourceSrv from ‘@grafana/runtime’) in the code, but it’s not clear how to execute queries and get the results (in case of a SELECT query). I don’t know if it’s the right direction, but here DataSourceApi | Grafana Labs I noticed there’s a query method which seems to be what I’m looking for. However, I really don’t understand how to use it to execute a simple SELECT query.
Can anyone help me? Did someone already face this problem? I’m stuck on this problem.
Thanks a lot in advance.