formatting and typos

This commit is contained in:
DokaDoka committed 2022-12-11 15:00:43 +11:00
1 parent 75698216e0
commit 724c7e356d
99 files changed
+515 -305

No files matched your search

+5
View File
@@ -1,9 +1,11 @@
# Scalar
Returns the first column for a single row.
## Lua
### Callback
```lua
-- alias: exports.oxmysql:scalar
-- alias: MySQL.Async.fetchScalar
@@ -14,6 +16,7 @@ end)
```
### Promise
```lua
-- alias: exports.oxmysql:scalar_async
-- alias: MySQL.Sync.fetchScalar
@@ -25,6 +28,7 @@ print(firstname)
## JavaScript
### Callback
```js
// alias: exports.oxmysql.scalar
@@ -34,6 +38,7 @@ MySQL.scalar('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifi
```
### Promise
```js
// alias: exports.oxmysql.scalar_async