mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
401 B
401 B
Scalar
Execute a query and return the result of the first row and column.
Usage
exports.oxmysql:scalar(query, {}, function(result)
print(result)
end)
local result = exports.oxmysql:scalarSync(query, {})
print(result)
exports.oxmysql.scalar(query, {}, (result) => {
console.log(result)
})
const result = await exports.oxmysql.scalarSync(query, {})
console.log(result)