Update for docs (#116)

* Update for docs

* More changes and fix
This commit is contained in:
Maciej Ratyński authored and GitHub committed 2023-04-21 00:07:57 +10:00
1 parent 5850640094
commit 8ca3c1bdfc
21 files changed
+190 -7

No files matched your search

+2
View File
@@ -9,6 +9,7 @@ Returns the number of affected rows by the query.
```lua
-- alias: exports.oxmysql:update
-- alias: MySQL.Async.execute
-- alias: exports.ghmattimysql:execute
MySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', {newName, playerIdentifier}, function(affectedRows)
if affectedRows then
@@ -22,6 +23,7 @@ end)
```lua
-- alias: exports.oxmysql:update_async
-- alias: MySQL.Sync.execute
-- alias: exports.ghmattimysql:executeSync
local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ?', {newName, playerIdentifier})
if affectedRows then