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 @@ Inserts a new entry into the database and returns the insert id for the row, if
```lua
-- alias: exports.oxmysql:insert
-- alias: MySQL.Async.insert
-- alias: exports.ghmattimysql:execute
MySQL.insert('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?)', {playerIdentifier, firstName, lastName}, function(id)
print(id)
@@ -20,6 +21,7 @@ end)
```lua
-- alias: exports.oxmysql:insert_async
-- alias: MySQL.Sync.insert
-- alias: exports.ghmattimysql:executeSync
local id = MySQL.insert.await('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?)', {playerIdentifier, firstName, lastName})
print(id)