overextended / oxmysql

MySQL resource for FXServer.
https://overextended.dev/oxmysql
GNU Lesser General Public License v3.0
316 stars 194 forks source link

A way to specify "invokingResource" in exports #220

Closed HeyyCzer closed 6 months ago

HeyyCzer commented 6 months ago

Is your feature request related to a problem? Please describe. In frameworks like vrp, that queries are made by the core, using vRP.prepare and vRP.query is hard to known which resources have a high query time.

Describe the solution you'd like Pass the invokingResource name that you want to show in oxmysql UI or console warnings as an option. Example:

exports.oxmysql:query_async(sqlQuery, params, { invokingResource = "example_resource" })

Describe alternatives you've considered None.

Additional context None.