darksaid98 faae020dd4 feat: Added transactions support (#20)
* feat: transactions

* Adds transactions function
* Adds query & param parser with ghmattimysql compatability

* feat: transaction exports

* Adds exports for using transactions

* feat: set transaction isolation level on start

* feat: accept mysql-async syntax

* fix: acquire connection from pool

* refactor: syntactic sugar in transaction.js

* feat: optional error logging

* It ain't pretty but it gets the job done.

* Revert "feat: optional error logging"

This reverts commit fdff479f34b7575c240334cff0f4f12d03e0d48f.

* feat: transaction isolation level convar

* fix: requested changes
2021-09-20 16:48:24 +02:00
2021-09-17 01:11:07 +02:00
2021-09-17 17:18:42 +02:00
2021-09-20 13:45:55 +02:00
2021-08-15 16:13:48 +02:00
2021-09-20 13:45:55 +02:00
2021-09-09 22:23:03 +02:00
2021-09-20 13:45:55 +02:00
2021-09-20 13:45:55 +02:00

oxmysql

Documentation

Discord

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.

S
Description
MySQL resource for FX Server
Readme
2 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 67.1%
Svelte 22.4%
Lua 5.1%
JavaScript 4.4%
CSS 0.5%
Other 0.5%