This commit is contained in:
Linden committed 2023-05-23 02:16:59 +10:00
1 parent daf6a505fc
commit d2753fb2fd
10 files changed
+47 -10

No files matched your search

+6 -2
View File
@@ -1,3 +1,7 @@
---
keywords: ['execute', 'fetchall']
---
# Query
Generic function that can be utilised for any query.
@@ -9,7 +13,7 @@ When selecting data it will return all matching rows and columns, otherwise it w
```lua
-- alias: exports.oxmysql:query
-- alias: MySQL.Async.query
-- alias: MySQL.Async.fetchAll
-- alias: exports.ghmattimysql:execute
MySQL.query('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)
@@ -26,7 +30,7 @@ end)
```lua
-- alias: exports.oxmysql:query_async
-- alias: MySQL.Sync.query
-- alias: MySQL.Sync.fetchAll
-- alias: exports.ghmattimysql:executeSync
local result = MySQL.query.await('SELECT * FROM users WHERE identifier = ?', {playerIdentifier})