mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
1 parent
5850640094
commit
8ca3c1bdfc
21 files changed
+190
-7
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user