mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 22:20:56 +00:00
Update and rename execute.md to update.md
This commit is contained in:
1 parent
39739edbfe
commit
1b8b6fd2de
1 file changed
+3
-3
@@ -1,14 +1,14 @@
|
|||||||
# Execute
|
# Update
|
||||||
Execute a query and returns the number of affected rows.
|
Execute a query and returns the number of affected rows.
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
```lua
|
```lua
|
||||||
exports.oxmysql:execute(query, {}, function(affectedRows)
|
exports.oxmysql:update(query, {}, function(affectedRows)
|
||||||
print('Updated '..affectedRows..' rows')
|
print('Updated '..affectedRows..' rows')
|
||||||
end)
|
end)
|
||||||
print('I will be printed before query result')
|
print('I will be printed before query result')
|
||||||
```
|
```
|
||||||
```lua
|
```lua
|
||||||
local affectedRows = exports.oxmysql:executeSync(query, {})
|
local affectedRows = exports.oxmysql:updateSync(query, {})
|
||||||
print('Updated '..affectedRows..' rows')
|
print('Updated '..affectedRows..' rows')
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user