mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 06:28:54 +00:00
15 lines
305 B
Markdown
15 lines
305 B
Markdown
# 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'])
|
|
```
|