Commit Graph
69 Commits
Author SHA1 Message Date
Manifest Bumper e4f8c98cc4 chore: bump manifest version to v2.7.6 2023-11-15 14:46:05 +00:00
Manifest Bumper 3e538edef4 chore: bump manifest version to v2.7.5 2023-09-13 06:30:07 +00:00
Manifest Bumper d83cd5d5c4 chore: bump manifest version to v2.7.4 2023-08-08 18:36:47 +00:00
Manifest Bumper 2583933680 chore: bump manifest version to v2.7.3 2023-07-28 07:50:44 +00:00
Manifest Bumper 32d61488f4 chore: bump manifest version to v2.7.2 2023-07-06 02:57:52 +00:00
Manifest Bumper 54deb4ab66 chore: bump manifest version to v2.7.1 2023-06-20 22:03:40 +00:00
Manifest Bumper 9cb2d85e40 chore: bump manifest version to v2.7.0 2023-06-17 19:07:24 +00:00
Manifest Bumper 425c3027ed chore: bump manifest version to v2.6.0 2023-03-31 17:30:04 +00:00
Luke fb78adec43 refactor(web): visibility handling 2023-03-24 20:56:53 +01:00
Manifest Bumper f5a9d588cb chore: bump manifest version to v2.5.4 2022-11-17 22:01:12 +00:00
Manifest Bumper 30e37af313 chore: bump manifest version to v2.5.3 2022-11-14 01:42:33 +00:00
Manifest Bumper 1544bc3e48 chore: bump manifest version to v2.5.2 2022-11-02 18:10:22 +00:00
Manifest Bumper 299a71dd07 chore: bump manifest version to v2.5.1 2022-09-21 04:14:44 +00:00
Manifest Bumper 706c3cf53d chore: bump manifest version to v2.5.0 2022-08-24 10:24:39 +00:00
Linden 211d678b8d chore(fxmanifest): update description
oxmysql has always worked with RedM, but habit leads to FiveM bias.
2022-08-09 03:03:57 +10:00
Manifest Bumper 8c89c70a4e chore: bump manifest version to v2.4.0 2022-07-28 04:57:13 +00: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 d80615bddc fix(db): handle errors during callbacks
Handles errors that would previously disappear into the void or show as 'undefined'.

In Lua this would only occur if yielding during the query callback response.

Cross runtime error handling is suffering.
2022-06-26 04:02:50 +10:00
Linden 15884fbc82 refactor: error handling
Meant to push this before release.
Ensures errors are handled as before, regardless of using exports
or lib/mysql; for compatibility.
2022-06-18 16:32:07 +10:00
Linden a709f67e99 chore: version bump 2022-06-18 14:19:50 +10:00
Linden 2e751a3537 chore: version bump 2022-05-16 04:46:26 +10:00
Linden fda3cab3b5 chore: version bump 2022-04-30 04:14:28 +10:00
Linden 050eef58b9 fix(execute): revert to promise api
Several reports of increased chances to hit a deadlock since v2.2.2, and
three reports of a timeout during prepare since v2.2.4.
Simpler to revert to the old prepare function and api (with improvements)
than to work out the solution.

Look into rewriting prepare in the future or including the mariadb connector,
which doesn't suffer from the same perf issues.
2022-04-03 06:10:13 +11:00
Linden fa1cdcc668 fix(execute): incorrect response parsing
Fixes several regressions and issues from ef0dfaa.
Sending a single parameter would set 'single' to true, ignoring multiple
results from the database and returning 'null'.
SELECT should not trigger transactions, not the other way around.
Results should not be parsed when no callback is defined.
2022-04-03 03:52:07 +11:00
Linden 9511af734b chore: update version 2022-04-03 01:27:51 +11:00
Linden c9e402ccdc fix(query): less verbose errors 2022-04-02 01:37:56 +11:00
Linden d34bbc45f5 fix(execute): properly await all query responses 2022-03-26 00:58:27 +11:00
Linden d45e98f38e chore: update version and workflows 2022-03-25 19:01:06 +11:00
Linden afc04fc553 fix(db): move query responses to their own try block
Other resources with script errors (notably "attempt to index a nil value") would mistakenly report the query as failed, and people would assume ANY reported errors were because of oxmysql, even through it was their own awful script.

No errors should be thrown in oxmysql when an error occurs in a function reference.
2022-03-07 15:13:07 +11: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
Linden 98b4f108e8 chore: update dependencies and commit lint 2022-03-03 00:04:27 +11:00
Linden 6d96c1104b refactor(db): Delay connection until first tick 2022-02-28 16:00:30 +11:00
Linden 2d28c447ec fix(db/rawExecute): Parse multiple returned rows 2022-02-24 10:59:12 +11:00
Linden b2ca6b0c66 chore: Update version 2022-02-19 10:07:19 +11:00
Linden 0d64cb8cfe chore: Update version refs to 2.0.0 2022-02-19 03:55:12 +11:00
Luke 4e027c18fe chore: Bump version to 1.9.3 2022-02-14 16:42:51 +01:00
Linden 2ea78f1b1b Merge branch 'refactor' into main 2022-02-14 22:23:28 +11:00
Linden 0eb6e9c72c chore(fxmanifest): add convar_category
Improve support when using FxDK, allowing convars to be set in the project settings window.
2022-01-11 16:13:33 +11:00
Luke b2b1a64c8f chore(nui): WIP React rewrite 2021-12-30 20:05:07 +01:00
Linden 64fd6249ba fix(utils): convertNamedPlaceholders requires parameters
Resolves unexpected behaviour when resources send concatenated queries containing : and @

i.e. esx_status case query
2021-12-29 04:18:02 +11:00
Linden d54bcae363 fix(db): incorrect error reporting failed queries
When using callback functions and throwing an error (i.e. attempt to index a nil value), it would respond about an error in a nested ref call.

Don't catch callback errors.
2021-12-28 18:41:19 +11:00
dunak-debug 0290ea17e3 feat(ui): Client-side wrapper 2021-12-27 12:59:14 +01:00
Luke b0f25778fd fix: Set correct fxmanifest bundle.js path 2021-12-26 20:35:22 +01:00
Luke 5bbf30e4b4 feat: Initial UI files 2021-12-26 15:41:43 +01:00
Linden 36dd8ddd14 refactor: utilise new exports and deprecate old ones
Exports now utilise more accurate names to reflect their behaviour, with less confusion for JS users (await executeSync is no more).

Exports return promises or callback results directly to reduce promise chaining.

Promise exports now fully utilise JS, with Lua being removed from the resource - version checking runs through JS instead.

Various improvements to lib/MySQL as well as introduction of a prepare wrapper.
2021-12-23 14:15:17 +11:00
Linden 9de50f684f refactor(lua): remove file check and move to subdirectory 2021-10-31 06:48:00 +11:00
Linden 4913d6e50a chore: Version bump 2021-10-24 02:15:10 +11:00
Linden f7ed2d5b60 chore: Bump version 2021-10-19 04:41:55 +11:00
Linden abf259543d chore: Update version and dependencies 2021-10-18 02:19:09 +11:00
Linden b1babdbc09 chore: Update version 2021-10-17 02:04:09 +11:00