dunak-debug
372a95632c
refactor: Transaction tweaks and version bump 1.4.0
v1.4.0
2021-09-20 17:32:58 +02:00
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
dunak-debug
5e89d62688
chore: Bump version to 1.3.5
...
- Removed unused ts-loader
v1.3.5
2021-09-20 13:45:55 +02:00
dunak-debug
51ac8d1e8c
refactor: Use logical OR operator when checking callback parameter
2021-09-20 13:39:46 +02:00
dunak-debug
466f230dc4
fix: Allow passing callback as second parameter
2021-09-20 13:36:07 +02:00
dunak-debug
06b106151f
fix: Return null if query failed, show callback warning only in debug
2021-09-20 13:35:43 +02:00
Dunak
a0573c8623
Merge pull request #22 from BerkieBb/main
...
Multi-game support
v1.3.4
2021-09-19 21:38:22 +02:00
BerkieBb
076e327c9a
feat: Change game to common to enable support for other game like rdr3
2021-09-19 20:41:30 +02:00
Linden
c5f150e003
improvement: Only display warnings if callback is defined
...
- Non-function callbacks will display a warning.
- This makes the third argument optional for async queries.
v1.3.3
2021-09-19 04:25:42 +10:00
dunak-debug
4b2b564591
chore: Bump version to 1.3.2
v1.3.2
2021-09-18 12:45:37 +02:00
dunak-debug
3f57c566df
feat: Show error trace if debug is enabled
2021-09-18 12:45:15 +02:00
Linden
5e6547611b
refactor: safeCallback provides a warning, rather than an error
...
- The query does in fact proceed, but does not send a result
2021-09-18 11:08:21 +10:00
Linden
be221b70d3
feat: Enable JS sync exports if wrapper.lua is not loaded
v1.3.1
2021-09-18 10:28:40 +10:00
Linden
f7dea332de
improvement: Provide information when callback fails
2021-09-18 10:27:16 +10:00
Linden
d2758de972
tweak: Query execution times are less precise unless using debug mode
2021-09-18 10:24:06 +10:00
dunak-debug
c9acb09d08
refactor: Execute now return whole result object
v1.3.0
2021-09-17 22:19:49 +02:00
dunak-debug
73ad12ed02
refactor: Show error type of nil params
2021-09-17 22:19:26 +02:00
dunak-debug
4654460e22
fix: Don´t throw error if parameter is zero or false, check for undefined
2021-09-17 20:01:47 +02:00
dunak-debug
e23ba224aa
fix: Execute export result checking
2021-09-17 18:09:11 +02:00
dunak-debug
878a2eb6c0
fix: **Use query instead of execute always**
...
- mysql2 typeCast doesn´t work on prepared statements
2021-09-17 18:06:03 +02:00
dunak-debug
290e23c190
refactor: Split files into src folder, fix parser
2021-09-17 17:20:17 +02:00
dunak-debug
546eebe1cf
fix: Typo in wrapper
2021-09-17 17:19:30 +02:00
dunak-debug
fd4fa877ec
fix: Patch named placeholders, throw errors on nil values
2021-09-17 17:19:18 +02:00
dunak-debug
0a2f1ae856
chore: add prettier config
2021-09-17 17:18:42 +02:00
Dunak
72aafb8a16
Update pre-release.yml
2021-09-17 01:11:07 +02:00
Dunak
492aa947e6
Create pre-release.yml
2021-09-17 01:09:38 +02:00
Linden
20f35143db
Revert "v2.0.0"
...
This reverts commit 49a5087d70 .
2021-09-17 01:00:20 +02:00
dunak-debug
cc74fac733
fix: Parameter parsing, new update export, null parameter warning
...
- fix https://github.com/overextended/oxmysql/issues/14
- fix ? https://github.com/overextended/oxmysql/issues/16
- fix https://github.com/overextended/oxmysql/issues/15
2021-09-17 00:54:13 +02:00
Linden
b01e30d7b1
feat: New js sync exports (disabled by default)
...
New exports are faster than the lua wrapper and should be used to replace them
- Require a recent non-recommended server artifact
- If enabled, wrapper.lua should be removed
Lua 5.4 is enabled for improved memory and garbage collection when using the old wrapper
2021-09-17 06:30:58 +10:00
Linden
98a85faa1c
tweaks: Improve logging data, adjust exports
...
- Display name of the resource displaying an error
- Correct query resolve time is displayed during heavy loads
- Removed local functions for sync exports
2021-09-17 04:50:16 +10:00
Linden
49a5087d70
v2.0.0
2021-09-17 01:09:04 +10:00
Dunak
1e31cc0ace
fix: typo in workflow
v1.2.0
2021-09-12 18:11:56 +02:00
dunak-debug
e09b3482ba
chore: bump version to 1.2.0
2021-09-12 18:09:37 +02:00
Dunak
a31df20979
Create release.yml
2021-09-12 18:07:44 +02:00
dunak-debug
f6fb7cc017
fix: remove mysql2 patch, format lua parameters
2021-09-12 17:56:36 +02:00
dunak-debug
04e03e4fef
fix: Type casting, removed old query format, dont prepare execute/insert
...
- fixed https://github.com/overextended/oxmysql/issues/6
- fixed https://github.com/overextended/oxmysql/issues/7
- fixed https://github.com/overextended/oxmysql/issues/8
- fixed https://github.com/overextended/oxmysql/issues/9
- closes https://github.com/overextended/oxmysql/issues/12
- support for modified named-placeholders package patch
2021-09-12 16:46:38 +02:00
dunak-debug
94bd814186
fix: patch mysql2, named-placeholders
2021-09-12 16:28:02 +02:00
dunak-debug
93d86f849a
chore: bump version to 1.1.0
v1.1.0
2021-09-11 03:40:23 +02:00
dunak-debug
d6886bdd3f
fix: leftover console.log, typeCast
2021-09-11 03:26:58 +02:00
dunak-debug
8c6c6119f1
feat: mysql-async/ghmatti '@' compatibility, debug, error handling
...
- Implemented mysql-async/ghmatti '@' syntax for queries and parameters
- Better error handling on database connection error
- Check callback type
- Added `mysql_debug` convar
- Resolves https://github.com/overextended/oxmysql/pull/4
Co-authored-by: pitermcflebor
2021-09-11 03:21:30 +02:00
Dunak
2af99e35a7
Update README.md
2021-09-09 22:23:03 +02:00
Dunak
03e6e534f5
Update README.md
2021-09-09 22:22:36 +02:00
Dunak
45f9f72daa
Create FUNDING.yml
2021-09-09 22:20:31 +02:00
Dunak
c4a9db0a79
Merge pull request #1 from darksaid98/main
...
feat(fxmanifest): set server_only
2021-09-09 16:01:36 +02:00
darksaid98
8be251382d
feat(fxmanifest): set server_only
...
- Since the script only runs on the server there is no need for clients to be aware of it's existance
2021-09-09 15:28:34 +02:00
Dunak
6bfda0c64d
Revert "Assets"
...
This reverts commit cf8eb3e590 .
2021-09-09 12:41:12 +02:00
Dunak
cf8eb3e590
Assets
2021-09-09 12:36:35 +02:00
Dunak
44c4ea5fba
Update README.md
2021-09-08 23:55:32 +02:00
dunak-debug
6517951c83
feat: Parse URI-like connection string, support for slow query warning
v1.0.0
2021-09-08 01:07:27 +02:00
Linden
f252c94413
Refactor functions; change pool options
2021-08-29 09:16:39 +10:00