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.
This commit is contained in:
Linden committed 2021-12-23 14:15:17 +11:00
1 parent e5c5fc3b1b
commit 36dd8ddd14
11 files changed
+401 -420

No files matched your search

+3 -2
View File
@@ -31,8 +31,9 @@ jobs:
- name: Bundle files
run: |
mkdir -p ./temp/oxmysql
cp ./{LICENSE.md,README.md,fxmanifest.lua,lib} ./temp/oxmysql
zip -r oxmysql-${{ github.event.inputs.tag }}.zip ./temp/oxmysql
cp ./{LICENSE.md,README.md,fxmanifest.lua} ./temp/oxmysql
cp -r ./{lib,dist} ./temp/oxmysql
cd ./temp && zip -r ../oxmysql-${{ github.event.inputs.tag }}.zip ./oxmysql
- name: Create Release
uses: "marvinpinto/[email protected]"