mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
Create single.md
This commit is contained in:
1 parent
aae887869b
commit
6f46b2e6f8
1 file changed
+14
@@ -0,0 +1,14 @@
|
||||
# Single
|
||||
Execute a query and return the results of the first row.
|
||||
|
||||
### Usage
|
||||
```lua
|
||||
exports.oxmysql:single(query, {}, function(result)
|
||||
print(result['column'])
|
||||
end)
|
||||
print('I will be printed before query result')
|
||||
```
|
||||
```lua
|
||||
local result = exports.oxmysql:singleSync(query, {})
|
||||
print(result['column'])
|
||||
```
|
||||
Reference in new issue
Block a user