feat(lib): safeArguments function to assert types

- Ensures each argument has the expected type
- Refactor each function for reduced code duplication
- Correctly check Store for number queries (Async functions did not retrieve string)
This commit is contained in:
Linden committed 2021-10-08 05:51:07 +11:00
1 parent 5b55c81046
commit a06cf65d10
2 files changed
+34 -51

No files matched your search

+3 -1
View File
@@ -3,7 +3,7 @@ game 'common'
name 'oxmysql'
description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.'
version '1.5.0'
version '1.5.1'
url 'https://github.com/overextended/oxmysql'
author 'overextended'
use_fxv2_oal 'yes'
@@ -15,3 +15,5 @@ server_scripts {
'oxmysql.js',
'wrapper.lua'
}
provide 'mysql-async'