oxmysql is a middleware for FXServer which utilises node-mysql2 to communicate with a database and respond with the query results.
Calling the JS exports will result in async behaviour, or you can use the Lua exports to return a promise and await the response.