Linden
e8f1abcab7
feat(rawExecute): "prepare" alternative without unpacking
...
See #179 . Always return an array of row results (or null).
Parameters are now optional (though preferred).
2023-06-06 14:37:05 +10:00
Linden
613570167c
feat: provide exports for ghmattimysql
...
Rather than people weirdly renaming the resource, just provide event
handlers for ghmattimysql exports.
2022-07-28 14:48:23 +10:00
Linden
340ca48012
refactor: error handling
...
Add boolean to disable throwing error for query.
Reject promises when using _async exports.
Return errors as strings instead of Error (fails to serialise).
Fixes #122
2022-06-04 14:50:49 +10:00
Linden
c07fa4a451
refactor(transaction): support new transaction syntax
...
Adds a third accepted syntax for transactions, distinct from the mysql-async
compatible implementations.
2022-04-21 13:25:40 +10:00
Linden
defe3afb75
refactor(index): redundant code
2022-03-30 05:55:48 +11:00
Linden
901e6c0baa
refactor(index): simpler creation of async exports
2022-03-25 05:32:11 +00:00
Linden
4bbbe1efc2
refactor(index): cease resistance against 0 iq fivem community
...
Why did I think maintaining this type of resource would be a good idea?
2022-03-03 19:51:00 +11:00
dunak-debug
3a1462e0c0
fix(execute): Parse parameters as intended
2022-01-04 16:10:27 +01:00
dunak-debug
4498dddbac
WIP: Rewrite to TS & Cleanup
2021-12-26 02:21:46 +01:00
dunak-debug
8df05c748b
refactor: remove typescript and refactor
2021-08-17 02:58:31 +02:00
dunak-debug
d2a9a433bb
fix(callback): use process._tickCallback() fix (process.nextTick())
...
- this fixes whole issue with slow queries
- https://github.com/alcoholiclobster/fivem-mongodb/blob/400ac6615a334d43531a7a1824f2e8b540246fe2/index.js#L105
- setImmediate will just make performance worse
- now it also works in coroutine if yielded
- also i´m not sure why tickCallback helps, if somebody know i would be glad to know :D
- process.nextTick() is issue maybe, it works only for natives and not node functions
- process.nextTick isn't firing until the socket timeout callback fires
- discord conversation about it https://discord.com/channels/192358910387159041/433008322732490778/479523175869317130
2021-08-16 21:42:18 +02:00
dunak-debug
f4dc666a98
Revert "fix(callback): forgot to wrap setImmediate on execute export"
...
This reverts commit ea98463224 .
2021-08-16 21:36:04 +02:00
dunak-debug
baa91dab4e
Revert "fix(callback): use setImmediate to callback on main thread"
...
This reverts commit e9a18b5a46 .
2021-08-16 21:35:55 +02:00
dunak-debug
ea98463224
fix(callback): forgot to wrap setImmediate on execute export
2021-08-16 20:09:37 +02:00
dunak-debug
e9a18b5a46
fix(callback): use setImmediate to callback on main thread
...
- maybe fix of random query times inside coroutines
2021-08-16 19:43:47 +02:00
dunak-debug
c242e03baf
feat(mysql): setup insert, single, scalar exports
...
- renamed test.lua to wrapper.lua
- use local function for documentation (maybe?)
- setup sync wrappers
2021-08-16 15:29:00 +02:00
dunak-debug
b2ade77589
feat(mysql): setup execute export
...
- also setup test.lua for testing
2021-08-16 00:12:28 +02:00
dunak-debug
7afd440931
fix(webpack): fixed resolving .js extension when building
...
- also removed eslint
2021-08-15 16:48:29 +02:00
dunak-debug
1f675b44c4
Setup node package
2021-08-15 16:13:48 +02:00