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