mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
Update and rename fetch.md to execute.md
This commit is contained in:
1 parent
1b8b6fd2de
commit
2867b16aac
1 file changed
+2
-2
+14
@@ -0,0 +1,14 @@
|
||||
# Execute
|
||||
Execute a query and returns an array of all results. This is synonymous with the deprecated fetch.
|
||||
|
||||
### Usage
|
||||
```lua
|
||||
exports.oxmysql:fetch(query, {}, function(result)
|
||||
print(result[1]['column1'], result[1]['column2'], result[2]['column1'], result[2]['column2'])
|
||||
end)
|
||||
print('I will be printed before query result')
|
||||
```
|
||||
```lua
|
||||
local result = exports.oxmysql:fetchSync(query, {})
|
||||
print(result[1]['column1'], result[1]['column2'], result[2]['column1'], result[2]['column2'])
|
||||
```
|
||||
Reference in new issue
Block a user