MySql2 execute function not working after establishing the connection with the host
I am trying to work on my database but after establishing the connection between the server, I am unable to execute any query using the execute or the query function. The error says that it is not a function however when I check the GitHub repo, the commands are present and also in the readme the functions are shown as demonstration. Can anyone please help me resolve this issue? Below is the code along with the error. I will also share the link from which I have got this module information.